Merge pull request #2 from bobloy/chatter-develop
Default tags and args
This commit is contained in:
commit
dfe79e9a6e
@ -3,6 +3,7 @@ class StatementMixin(object):
|
|||||||
This class has shared methods used to
|
This class has shared methods used to
|
||||||
normalize different statement models.
|
normalize different statement models.
|
||||||
"""
|
"""
|
||||||
|
tags = []
|
||||||
|
|
||||||
def get_tags(self):
|
def get_tags(self):
|
||||||
"""
|
"""
|
||||||
|
@ -611,6 +611,7 @@ def date_from_duration(base_date, number_as_string, unit, duration, base_time=No
|
|||||||
if base_time is not None:
|
if base_time is not None:
|
||||||
base_date = date_from_adverb(base_date, base_time)
|
base_date = date_from_adverb(base_date, base_time)
|
||||||
num = convert_string_to_number(number_as_string)
|
num = convert_string_to_number(number_as_string)
|
||||||
|
args = {}
|
||||||
if unit in day_variations:
|
if unit in day_variations:
|
||||||
args = {'days': num}
|
args = {'days': num}
|
||||||
elif unit in minute_variations:
|
elif unit in minute_variations:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user