never store 'RELEVE CARTE'

This commit is contained in:
Romain Bignon 2012-10-27 12:50:14 +02:00
commit 9aeb7c67ed

View file

@ -116,10 +116,12 @@ class CICBrowser(BaseBrowser):
transactions = []
last_debit = None
for tr in self.list_operations(account._link_id):
if tr.raw == 'RELEVE CARTE' and last_debit is None:
last_debit = (tr.date - timedelta(days=10)).month
else:
# to prevent redundancy with card transactions, we do not
# store 'RELEVE CARTE' transaction.
if tr.raw != 'RELEVE CARTE':
transactions.append(tr)
elif last_debit is None:
last_debit = (tr.date - timedelta(days=10)).month
month = 0
for card_link in account._card_links: