Restore old ID for compatibility

This commit is contained in:
Florent 2013-02-22 09:41:40 +01:00 committed by Romain Bignon
commit 0ea938a0c6

View file

@ -44,4 +44,10 @@ class AccountsList(BasePage):
balance = a.find('span[@class="solde"]/label').text
account.balance = Decimal(FrenchTransaction.clean_amount(balance))
account.coming = NotAvailable
if "Courant" in account.label:
account.id = "CC-" + account.id
elif "Livret A" in account.label:
account.id = "LA-" + account.id
elif "Orange" in account.label:
account.id = "LEO-" + account.id
yield account