[creditmut] transfer now accepts long and short IDs
This commit is contained in:
parent
2ef5791cf8
commit
3cbf1d13a6
1 changed files with 3 additions and 1 deletions
|
|
@ -50,6 +50,7 @@ class UserSpacePage(BasePage):
|
|||
pass
|
||||
|
||||
class AccountsPage(BasePage):
|
||||
ALL_EXCEPT_DIGITS = re.compile("[^0-9]*")
|
||||
def get_list(self):
|
||||
accounts = OrderedDict()
|
||||
|
||||
|
|
@ -85,7 +86,8 @@ class AccountsPage(BasePage):
|
|||
continue
|
||||
|
||||
account = Account()
|
||||
account.id = id
|
||||
# the id is only formed by digits
|
||||
account.id = self.ALL_EXCEPT_DIGITS.sub('',id)
|
||||
account.label = unicode(a.text).strip().lstrip(' 0123456789').title()
|
||||
account._link_id = link
|
||||
account._card_links = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue