[citibank] Site was updated. Closes #1820
This commit is contained in:
parent
dbf13930a5
commit
677ebf6e70
1 changed files with 5 additions and 4 deletions
|
|
@ -68,7 +68,8 @@ class AccountsPage(JsonPage):
|
|||
|
||||
def inner_ids_dict(self):
|
||||
return dict((prod['parsedAccountName'][-4:], prod['accountInstanceId'])
|
||||
for cat in self.doc['accountsSummaryViewObj']['categoryList']
|
||||
for bean in self.doc['summaryViewBeanList']
|
||||
for cat in bean['accountsSummaryViewObj']['categoryList']
|
||||
for prod in cat['products'] if cat['categoryType'] == 'CRD')
|
||||
|
||||
|
||||
|
|
@ -128,9 +129,9 @@ class AccDetailsPage(JsonPage):
|
|||
|
||||
class StatementsPage(SomePage):
|
||||
def dates(self):
|
||||
return [x for x in self.doc.xpath(
|
||||
u'//select[@id="currentStatementsDate"]/option/text()')
|
||||
if re.match(u'^\d\d\d\d-\d\d-\d\d$', x)]
|
||||
return [x[:10] for x in self.doc.xpath(
|
||||
u'//select[@id="currentStatementsDate"]/option/@value')
|
||||
if re.match(u'^\d\d\d\d-\d\d-\d\d All$', x)]
|
||||
|
||||
|
||||
class StatementPage(RawPage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue