Drop Additional keyword arguments
[Deprecated since version 0.9](https://docs.sqlalchemy.org/en/12/core/type_basics.html#sqlalchemy.types.Float.params.**kwargs)
This commit is contained in:
parent
5dbbe775d8
commit
fbedbc8f7f
|
@ -1748,7 +1748,7 @@ class MoveOnDocument(JoinedTableMixin, ActionWithMultipleTradeDocuments):
|
||||||
"""Action than certify one movement of some indescriptible material of
|
"""Action than certify one movement of some indescriptible material of
|
||||||
one container to an other."""
|
one container to an other."""
|
||||||
|
|
||||||
weight = db.Column(db.Float(nullable=True))
|
weight = db.Column(db.Float())
|
||||||
weight.comment = """Weight than go to recycling"""
|
weight.comment = """Weight than go to recycling"""
|
||||||
container_from_id = db.Column(
|
container_from_id = db.Column(
|
||||||
db.BigInteger,
|
db.BigInteger,
|
||||||
|
|
|
@ -72,7 +72,7 @@ class TradeDocument(Thing):
|
||||||
file_hash.comment = """This is the hash of the file produced from frontend."""
|
file_hash.comment = """This is the hash of the file produced from frontend."""
|
||||||
url = db.Column(URL())
|
url = db.Column(URL())
|
||||||
url.comment = """This is the url where resides the document."""
|
url.comment = """This is the url where resides the document."""
|
||||||
weight = db.Column(db.Float(nullable=True))
|
weight = db.Column(db.Float())
|
||||||
weight.comment = """This is the weight of one container than this document express."""
|
weight.comment = """This is the weight of one container than this document express."""
|
||||||
|
|
||||||
__table_args__ = (
|
__table_args__ = (
|
||||||
|
@ -150,10 +150,10 @@ class TradeDocument(Thing):
|
||||||
with suppress(StopIteration, ValueError):
|
with suppress(StopIteration, ValueError):
|
||||||
actions = copy.copy(self.actions)
|
actions = copy.copy(self.actions)
|
||||||
actions.sort(key=lambda x: x.created)
|
actions.sort(key=lambda x: x.created)
|
||||||
t_trades = ['Trade',
|
t_trades = ['Trade',
|
||||||
'Confirm',
|
'Confirm',
|
||||||
'ConfirmRevokeDocument',
|
'ConfirmRevokeDocument',
|
||||||
'RevokeDocument',
|
'RevokeDocument',
|
||||||
'ConfirmDocument']
|
'ConfirmDocument']
|
||||||
return next(e for e in reversed(actions) if e.t in t_trades)
|
return next(e for e in reversed(actions) if e.t in t_trades)
|
||||||
|
|
||||||
|
|
Reference in New Issue