Use new vdate in modules instead of _val
This commit is contained in:
parent
834c30b1e8
commit
5cbebe0117
2 changed files with 4 additions and 3 deletions
|
|
@ -190,7 +190,7 @@ class HistoryPage(BEPage):
|
||||||
date = datetime.strptime(tddate, '%d/%m/%Y')
|
date = datetime.strptime(tddate, '%d/%m/%Y')
|
||||||
val = datetime.strptime(tdval, '%d/%m/%Y')
|
val = datetime.strptime(tdval, '%d/%m/%Y')
|
||||||
t.parse(date, tdlabel)
|
t.parse(date, tdlabel)
|
||||||
t._val = val # FIXME is it rdate? date?
|
t.vdate = val
|
||||||
yield t
|
yield t
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ class AccountsPage(SGPEPage):
|
||||||
account.currency = account.get_currency(tdbalance)
|
account.currency = account.get_currency(tdbalance)
|
||||||
yield account
|
yield account
|
||||||
|
|
||||||
|
|
||||||
class CardsPage(SGPEPage):
|
class CardsPage(SGPEPage):
|
||||||
COL_ID = 0
|
COL_ID = 0
|
||||||
COL_LABEL = 1
|
COL_LABEL = 1
|
||||||
|
|
@ -165,7 +166,6 @@ class CardsPage(SGPEPage):
|
||||||
yield account
|
yield account
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class HistoryPage(SGPEPage):
|
class HistoryPage(SGPEPage):
|
||||||
def iter_transactions(self, account, basecount):
|
def iter_transactions(self, account, basecount):
|
||||||
table = self.parser.select(self.document.getroot(), '#tab-corps', 1)
|
table = self.parser.select(self.document.getroot(), '#tab-corps', 1)
|
||||||
|
|
@ -189,7 +189,7 @@ class HistoryPage(SGPEPage):
|
||||||
l1 = ' '.join(l1.split())
|
l1 = ' '.join(l1.split())
|
||||||
l2 = ' '.join(l2.split())
|
l2 = ' '.join(l2.split())
|
||||||
t.parse(date, l1 + ' ' + l2)
|
t.parse(date, l1 + ' ' + l2)
|
||||||
t._val = val # FIXME is it rdate? date?
|
t.vdate = val
|
||||||
yield t
|
yield t
|
||||||
|
|
||||||
def has_next(self):
|
def has_next(self):
|
||||||
|
|
@ -199,6 +199,7 @@ class HistoryPage(SGPEPage):
|
||||||
return int(end.text.replace('/', '')) > cur
|
return int(end.text.replace('/', '')) > cur
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
class CardHistoryPage(SGPEPage):
|
class CardHistoryPage(SGPEPage):
|
||||||
COL_DATE = 0
|
COL_DATE = 0
|
||||||
COL_LABEL = 1
|
COL_LABEL = 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue