From 3e769e8d33aaf925516839c1df8ceb1df02a64be Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 21 Feb 2022 10:02:20 +0000 Subject: [PATCH] Convert amount to float before adding in total calculation --- handler/transactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/transactions.py b/handler/transactions.py index 4cdcb1f..7c693fd 100644 --- a/handler/transactions.py +++ b/handler/transactions.py @@ -604,7 +604,7 @@ class Transactions(object): if not contact["data"]["is_selling"]: continue if currency == "USD": - cumul_usd += amount + cumul_usd += float(amount) else: rate = rates[currency] amount_usd = float(amount) / rate