From ed46d72f216d9c11ad8154033a1e23697bdf4b76 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 2 Sep 2014 17:09:23 +0200 Subject: [PATCH] ignore canceled transactions --- modules/paypal/pages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/paypal/pages.py b/modules/paypal/pages.py index dd75e63d..fb5ceb47 100644 --- a/modules/paypal/pages.py +++ b/modules/paypal/pages.py @@ -184,8 +184,8 @@ class SubmitPage(BasePage): raise ValueError('CSV fields count of %i is not supported' % len(csv.header)) for row in csv.rows: - # we filter accounts by currency - if account.get_currency(row[CURRENCY]) != account.currency: + # we filter accounts by currency and ignore canceled transactions + if account.get_currency(row[CURRENCY]) != account.currency or row[NET] == '...': continue # analog to dict.get()