the fucking columns heads are not same size than data columns
This commit is contained in:
parent
17d2c732a8
commit
a8d2d86c6e
1 changed files with 4 additions and 3 deletions
|
|
@ -138,12 +138,13 @@ class TransactionsPage(BasePage):
|
|||
continue
|
||||
|
||||
if tr.attrib.get('class', '') == 'tr-thead':
|
||||
for i, head in enumerate(tr.findall('th')):
|
||||
heads = tr.findall('th')
|
||||
for i, head in enumerate(heads):
|
||||
key = self.parser.tocleanstring(head)
|
||||
if key == u'Débit':
|
||||
self.COL_DEBIT = i
|
||||
self.COL_DEBIT = i - len(heads)
|
||||
if key == u'Crédit':
|
||||
self.COL_CREDIT = i
|
||||
self.COL_CREDIT = i - len(heads)
|
||||
if key == u'Libellé':
|
||||
self.COL_TEXT = i
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue