diff --git a/modules/creditcooperatif/perso/pages.py b/modules/creditcooperatif/perso/pages.py index 0fadd383..e5d870b5 100644 --- a/modules/creditcooperatif/perso/pages.py +++ b/modules/creditcooperatif/perso/pages.py @@ -103,10 +103,12 @@ class TransactionsJSONPage(BasePage): ROW_DEBIT = -2 def get_transactions(self): + seen = set() for tr in self.document['exportData'][1:]: t = Transaction(0) t.parse(tr[self.ROW_DATE], tr[self.ROW_TEXT]) t.set_amount(tr[self.ROW_CREDIT], tr[self.ROW_DEBIT]) + t.id = t.unique_id(seen) yield t