LCL: site specific fix
Reported-by: Ch. Perret <ch.perret@gmail.com> Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
This commit is contained in:
parent
ce119b27e7
commit
9a43dce034
1 changed files with 3 additions and 1 deletions
|
|
@ -190,7 +190,9 @@ class AccountHistoryPage(BasePage):
|
|||
if value is None:
|
||||
value=td.attrib.get('class');
|
||||
if value.startswith("date"):
|
||||
operation.date=date(*reversed([int(x) for x in td.text.split('/')]))
|
||||
# some transaction are included in a <strong> tag
|
||||
value=u''.join([txt.strip() for txt in td.itertext()])
|
||||
operation.date=date(*reversed([int(x) for x in value.split('/')]))
|
||||
elif value.startswith("lib") or value.startswith("opLib"):
|
||||
# misclosed A tag requires to grab text from td
|
||||
operation.raw=u''.join([txt.strip() for txt in td.itertext()])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue