Fix listing for proxy account
This commit is contained in:
parent
7fb44d9f3c
commit
050ff69f0f
1 changed files with 2 additions and 2 deletions
|
|
@ -36,10 +36,10 @@ class AccountsList(BasePage):
|
|||
|
||||
def get_list(self):
|
||||
ids = set()
|
||||
for td in self.document.xpath('.//td[@nowrap="nowrap"]'):
|
||||
for tr in self.document.xpath('//tr[@align="center"]'):
|
||||
account = Account()
|
||||
account.currency = Currency.CUR_EUR
|
||||
link = td.xpath('.//a')[0]
|
||||
link = tr.xpath('.//a')[0]
|
||||
account._index = int(re.search('\d', link.attrib['href']).group(0))
|
||||
if not account._index in ids:
|
||||
ids.add(account._index)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue