From 37026158b8f7bc01b85cc264c6e40aee1c964d3f Mon Sep 17 00:00:00 2001 From: Baptiste Delpey Date: Mon, 2 Mar 2015 14:44:50 +0100 Subject: [PATCH] fix history on paypal, stop parsing suspended recurring payment --- modules/paypal/newpages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/paypal/newpages.py b/modules/paypal/newpages.py index 9cc39903..6df28ae9 100644 --- a/modules/paypal/newpages.py +++ b/modules/paypal/newpages.py @@ -65,7 +65,7 @@ class NewProHistoryPage(Page): date = parse_french_date(tr.xpath('./td[@class="date"]')[0].text.strip()) status = tr.xpath('./td[@class="desc"]/ul/li[@class="first"]')[0].text.strip() #We pass this because it's not transaction - if status == u'Créé' or status == u'Annulé': + if status == u'Créé' or status == u'Annulé' or status == u'Suspendu': continue raw = tr.xpath('./td[@class="desc"]/strong')[0].text.strip() t.parse(date=date, raw=raw)