order transactions by date to prevent LinearDateGuesser to be duped by the f*cking website

This commit is contained in:
Romain Bignon 2014-07-01 12:10:17 +02:00
commit 0008cf17f1
2 changed files with 8 additions and 1 deletions

View file

@ -245,6 +245,13 @@ class TransactionsPage(BasePage):
return None
def get_order_by_date_url(self):
try:
link = self.document.xpath('//table[@class="ca-table"]/thead//a[text()="Date"]')[0].attrib['href']
except IndexError:
link = self.url
return link
COL_DATE = 0
COL_TEXT = 1
COL_DEBIT = None