From 51f1025105cdb357f19ea48194f4a3399253e766 Mon Sep 17 00:00:00 2001 From: nicofrand Date: Wed, 30 Oct 2019 20:49:48 +0100 Subject: [PATCH] [paypal] Fix types during comparison --- modules/paypal/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/paypal/pages.py b/modules/paypal/pages.py index 0b08b813cc..2fa8c8c786 100644 --- a/modules/paypal/pages.py +++ b/modules/paypal/pages.py @@ -270,7 +270,7 @@ def parse_transaction(self, transaction, account): return [] cc = [tr['grossAmount']['amountUnformatted'] for tr in transaction['secondaryTransactions'] \ if account.currency == tr['grossAmount']['currency'] \ - and (tr['grossAmount']['amountUnformatted'] < 0) == (transaction['grossAmount']['amountUnformatted'] < 0) \ + and (int(tr['grossAmount']['amountUnformatted']) < 0) == (int(transaction['grossAmount']['amountUnformatted']) < 0) \ and tr['transactionDescription']['description'].startswith('Conversion de devise')] if not cc: return [] -- GitLab