remove spaces from IDs

This commit is contained in:
Romain Bignon 2015-03-16 14:58:11 +01:00
commit 5fa16ee66d

View file

@ -172,7 +172,7 @@ class ProAccountsPage(AccountsPage):
cols = tr.findall('td')
a = Account()
a.id = cols[self.COL_ID].xpath('.//span[@class="right-underline"]')[0].text.strip()
a.id = cols[self.COL_ID].xpath('.//span[@class="right-underline"]')[0].text.replace(' ', '').strip()
a.label = unicode(cols[self.COL_ID].xpath('.//span[@class="left-underline"]')[0].text.strip())
a.type = self.get_account_type(a.label)
balance = self.parser.tocleanstring(cols[self.COL_BALANCE])