fixed parser for float amount of currency

This commit is contained in:
2023-01-03 00:23:56 +01:00
parent 07008d2e08
commit 958fab5ae8
2 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ class Trade():
def __init__(self,
nrItems: str,
item: str,
amount: int,
amount: float,
currency: str,
tab: str,
row: str,
@@ -132,7 +132,7 @@ class Message():
if res:
self.trade = Trade(nrItems=res['nrItems'],
item=res['item'],
amount=int(res['amount']),
amount=float(res['amount']),
currency=res['currency'],
tab=res['tab'],
row=res['row'],