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:
parent
f2ea735c78
commit
e5e745d2da
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue