fixed parser for float amount of currency
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user