never store 'RELEVE CARTE'
This commit is contained in:
parent
948f2b9ed2
commit
9aeb7c67ed
1 changed files with 5 additions and 3 deletions
|
|
@ -116,10 +116,12 @@ class CICBrowser(BaseBrowser):
|
||||||
transactions = []
|
transactions = []
|
||||||
last_debit = None
|
last_debit = None
|
||||||
for tr in self.list_operations(account._link_id):
|
for tr in self.list_operations(account._link_id):
|
||||||
if tr.raw == 'RELEVE CARTE' and last_debit is None:
|
# to prevent redundancy with card transactions, we do not
|
||||||
last_debit = (tr.date - timedelta(days=10)).month
|
# store 'RELEVE CARTE' transaction.
|
||||||
else:
|
if tr.raw != 'RELEVE CARTE':
|
||||||
transactions.append(tr)
|
transactions.append(tr)
|
||||||
|
elif last_debit is None:
|
||||||
|
last_debit = (tr.date - timedelta(days=10)).month
|
||||||
|
|
||||||
month = 0
|
month = 0
|
||||||
for card_link in account._card_links:
|
for card_link in account._card_links:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue