Commit a6da9d52 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[cragr] avoid duplicate iban

duplicate recipient in Element is needed for index, avoid raise DataError for it
parent 34b2c2f3
......@@ -582,7 +582,7 @@ class CragrAPI(LoginBrowser):
seen = set()
for index, external_rcpt in enumerate(
external_rcpt._index = index
if not external_rcpt.iban in seen:
if external_rcpt.iban not in seen:
yield external_rcpt
......@@ -74,6 +74,9 @@ class RecipientsPage(LoggedPage, JsonPage):
class iter_external_recipient(DictElement):
def store(self, obj):
return obj
class item(ItemElement):
def condition(self):
return Dict('recipientId', default=None)(self)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment