fix parsing of labels with new crédit agricole website
To determinate what is the index of label column, we have to consider the 'colspan' attribute of header
This commit is contained in:
parent
2811340e19
commit
d26180c5a8
1 changed files with 2 additions and 0 deletions
|
|
@ -284,6 +284,8 @@ class TransactionsPage(Page):
|
|||
heads = tr.findall('th')
|
||||
for i, head in enumerate(heads):
|
||||
key = self.parser.tocleanstring(head)
|
||||
if 'colspan' in head.attrib:
|
||||
i += int(head.get('colspan')) - 1
|
||||
if key == u'Débit':
|
||||
self.COL_DEBIT = i - len(heads)
|
||||
if key == u'Crédit':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue