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

[cmb] avoid duplicate account

Closes: 586122@redmine
parent 89d0f8b1
......@@ -159,8 +159,10 @@ class CmsoParBrowser(LoginBrowser, StatesMixin):
self.page.check_response()
for key in self.page.get_keys():
for a in self.page.iter_accounts(key=key):
self.accounts_list.append(a)
seen[a._index] = a
# Can have duplicate account, avoid them
if a._index not in seen:
self.accounts_list.append(a)
seen[a._index] = a
# Next, get saving accounts
numbers.update(self.page.get_numbers())
......
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