From 85f2c816bfc787e23de43b4549bba162211c55e3 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Mon, 30 Jul 2018 10:22:14 +0200 Subject: [PATCH] [spirica] fix date issue This is a blind fix concerning the "symbols = '-'" patch from a weboob contributor: https://git.weboob.org/weboob/devel/merge_requests/218 It seems that something with the obj_date is causing crashes on the workers that we cannot reproduce locally so while I am waiting for the session folder, this fix may reduce bugs on the spirica module. --- modules/spirica/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/spirica/pages.py b/modules/spirica/pages.py index 74bed66e4f..9c535177b2 100644 --- a/modules/spirica/pages.py +++ b/modules/spirica/pages.py @@ -267,7 +267,7 @@ class item(ItemElement): obj_vdate = Date(CleanText('./td[8]'), dayfirst=True) def obj_date(self): - return Date(CleanText('./td[6]', symbols='-'), dayfirst=True, default=Field('vdate')(self))(self) + return Date(CleanText('./td[6]'), dayfirst=True, default=Field('vdate')(self))(self) def obj_amount(self): # We display the raw amount only if the net amount is not available. -- GitLab