From e5e745d2da8cd2de97c1947575f355e910ff0c4a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Dutreve Date: Mon, 19 Jan 2015 13:11:21 +0100 Subject: [PATCH] Extend the delay to 31 days (instead of 7) for date_max_bump of several DateGuesser. Signed-off-by: Jean-Philippe Dutreve --- weboob/tools/date.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/tools/date.py b/weboob/tools/date.py index ccd3bdfc..83d9dd1f 100644 --- a/weboob/tools/date.py +++ b/weboob/tools/date.py @@ -143,7 +143,7 @@ class LinearDateGuesser(object): sorted from recent to older. """ - def __init__(self, current_date=None, date_max_bump=timedelta(7)): + def __init__(self, current_date=None, date_max_bump=timedelta(31)): self.date_max_bump = date_max_bump if current_date is None: current_date = date.today() @@ -215,7 +215,7 @@ class ChaoticDateGuesser(LinearDateGuesser): day and month and the minimum year """ - def __init__(self, min_date, current_date=None, date_max_bump=timedelta(7)): + def __init__(self, min_date, current_date=None, date_max_bump=timedelta(31)): if min_date is None: raise ValueError("min_date is not set") self.min_date = min_date