From 8fb3bce5f1e86d389171504791e59ab76dc413db Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 19 Jul 2013 19:21:39 +0200 Subject: [PATCH] clean raw labels --- modules/delubac/pages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/delubac/pages.py b/modules/delubac/pages.py index 85c47010..2086df56 100644 --- a/modules/delubac/pages.py +++ b/modules/delubac/pages.py @@ -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)