do not change Transaction.raw if there is no detail

This commit is contained in:
Romain Bignon 2015-03-25 08:46:57 +01:00
commit cea81bee07

View file

@ -232,7 +232,9 @@ class AccountHistoryPage(LoggedPage, HTMLPage):
if obj.category == 'RELEVE CB': if obj.category == 'RELEVE CB':
return return
obj.raw = Async('details', CleanText(u'//td[contains(text(), "Libellé")]/following-sibling::*[1]', default=obj.raw))(self) raw = Async('details', CleanText(u'//td[contains(text(), "Libellé")]/following-sibling::*[1]', default=obj.raw))(self)
if raw:
obj.raw = raw
return True return True
def get_operations(self): def get_operations(self):