Commit 51f10251 authored by Nicolas Frandeboeuf's avatar Nicolas Frandeboeuf Committed by Vincent A

[paypal] Fix types during comparison

parent 81f69e7f
......@@ -270,7 +270,7 @@ class ProHistoryPage(HistoryPage, JsonPage):
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 []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment