clean raw labels
This commit is contained in:
parent
b0d26f8024
commit
8fb3bce5f1
1 changed files with 2 additions and 2 deletions
|
|
@ -81,11 +81,11 @@ class OperationsPage(BasePage):
|
|||
operation = Transaction(i)
|
||||
|
||||
date = line.xpath('.//td[@class="nlb d"]')[0].text_content().strip()
|
||||
raw = line.xpath('.//td[@class="t"]')[0].text_content().strip()
|
||||
raw = self.parser.tocleanstring(line.xpath('.//td[@class="t"]')[0])
|
||||
|
||||
amounts = line.xpath('.//td[@class="n"]')
|
||||
[debit, credit] = [amount.text_content().strip()
|
||||
for amount in line.xpath('.//td[@class="n"]')]
|
||||
for amount in amounts]
|
||||
|
||||
operation.parse(date=date, raw=raw)
|
||||
operation.set_amount(credit, debit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue