Add unique id to creditcooperatif (perso)
This commit is contained in:
parent
bc0a9b89db
commit
6429662e55
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue