fix conversion warning
Signed-off-by: Christophe Lampin <weboob@lampin.net>
This commit is contained in:
parent
3f4a0b85fd
commit
f6b35956e7
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ class TransactionsPage(BasePage):
|
|||
|
||||
sub_label = col_text.find('br').tail
|
||||
if sub_label is not None and (len(t.label) < 3 or t.label == t.category or len(re.findall('[^\w\s]', sub_label))/float(len(sub_label)) < len(re.findall('\d', t.label))/float(len(t.label))):
|
||||
t.label = sub_label.strip()
|
||||
t.label = unicode(sub_label.strip())
|
||||
# Sometimes, the category contains the label, even if there is another line with it again.
|
||||
t.category = re.sub('(.*) .*', r'\1', t.category).strip()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue