fix history on paypal, stop parsing suspended recurring payment

This commit is contained in:
Baptiste Delpey 2015-03-02 14:44:50 +01:00 committed by Romain Bignon
commit 37026158b8

View file

@ -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)