Extend the delay to 31 days (instead of 7) for date_max_bump of several DateGuesser.

Signed-off-by: Jean-Philippe Dutreve <jdutreve@winancial.com>
This commit is contained in:
Jean-Philippe Dutreve 2015-01-19 13:11:21 +01:00 committed by Florent
commit e5e745d2da

View file

@ -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