Commit d5e0a4e9 authored by Martin Sicot's avatar Martin Sicot Committed by Romain Bignon

[americanexpress] Fix missing transactions

amex website use tab or other several whitespace to separate first name and last
name in one case and only 1 space causing evaluatione of
account._idforJSON == acc._owner to be false, denying all transactions.
closes:9076@zendesk
parent e7f6851b
......@@ -111,6 +111,7 @@ class AccountsPage(LoggedPage, HTMLPage):
acc._idforJSON = account_data[10][-1]
else:
acc._idforJSON = account_data[-5][-1]
acc._idforJSON = re.sub('\s+', ' ', acc._idforJSON)
acc.number = '-%s' % account_data[2][2]
acc.label = '%s %s' % (account_data[6][4], account_data[10][-1])
acc._balances_token = acc.id = balances_token
......
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