The new woob repository is here: This gitlab will be removed soon.

Commit 4f986a09 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[spirica] Added symbols='-' for the transaction dates

A weboob contributor proposed a patch to fix the Date when empty:

"For the field date, the module use the column "Date de réception"
and "Date de valeur" if the first is empty. But Spirica uses "-" when
the cell is empty, so no date is returned and boobank uses today's date
as default value."

I adapted his merge request since we now use CleanText instead of
TableCell for iter_history, with the connection I have the symbols='-'
does not change any date but maybe in some cases it will prevent boobank
from returning today's date by default.
parent d1b4db0c
......@@ -267,7 +267,7 @@ class item(ItemElement):
obj_vdate = Date(CleanText('./td[8]'), dayfirst=True)
def obj_date(self):
return Date(CleanText('./td[6]'), dayfirst=True, default=Field('vdate')(self))(self)
return Date(CleanText('./td[6]', symbols='-'), dayfirst=True, default=Field('vdate')(self))(self)
def obj_amount(self):
# We display the raw amount only if the net amount is not available.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment