From f962c07974908f478e48fc4639ec106b8632a5e2 Mon Sep 17 00:00:00 2001 From: Florent Viard Date: Thu, 27 May 2021 21:35:33 +0200 Subject: [PATCH] [bred] Ignore duplicate recipients with the same iban --- modules/bred/bred/transfer_pages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/bred/bred/transfer_pages.py b/modules/bred/bred/transfer_pages.py index 8d4a86fea9..32f6df8fea 100644 --- a/modules/bred/bred/transfer_pages.py +++ b/modules/bred/bred/transfer_pages.py @@ -72,6 +72,9 @@ class RecipientListPage(LoggedPage, JsonPage): @method class iter_external_recipients(DictElement): item_xpath = 'content/listeComptesCExternes' + # The id is the iban, and exceptionally there could be the same + # recipient multiple times when the bic of the recipient changed + ignore_duplicate = True class item(ItemElement): klass = Recipient -- GitLab