From 85d84849ce4f1dbc9d90e60a232543ccab610b45 Mon Sep 17 00:00:00 2001 From: Dorian Roly Date: Tue, 3 Sep 2019 15:38:57 +0200 Subject: [PATCH] [creditdunord] Add comment to explain the problem due to adding new accounts closes : 12838@zendesk --- modules/creditdunord/pages.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/creditdunord/pages.py b/modules/creditdunord/pages.py index ce84806c65..e813a84081 100755 --- a/modules/creditdunord/pages.py +++ b/modules/creditdunord/pages.py @@ -486,6 +486,16 @@ def get_list(self): a._acc_nb = cols[self.COL_ID].xpath('.//span[@class="right-underline"] | .//span[@class="right"]')[0].text.replace(' ', '').strip() a.id = a._acc_nb + + # If available we add 'IndiceCompte' and 'IndiceClassement' to the id due to the lack of information + # on the website. This method is not enough because on some connections, if there are multiple account with the + # same id and the same label, but with different currencies, we will add an index at the end of the id relative to the + # order the accounts appear on the website. This will cause the accounts to be shifted when the user will add a new account + # with same label/id, if this happens the new account will appear first on the website and it will take the index of '1' + # previously used by the first account. the already gathered transactions of the previously first account will appear on + # the new first account, the already gathered transactions of the previously second account will appear on the new + # second account (the previous one), etc. + if hasattr(a, '_args') and a._args: if a._args['IndiceCompte'].isdigit(): a.id = '%s%s' % (a.id, a._args['IndiceCompte']) -- GitLab