Project

General

Profile

« Previous | Next » 

Revision 4019

schemas/py_functions.sql: parse_date_range(): Always return a value for end date, even if string is not a date range. This enables using _dateRangeEnd() as a filter function on anything intended as an end date.

View differences:

schemas/py_functions.sql
178 178
range_sep='-'
179 179
part_sep=' '
180 180

  
181
default = (str_, None)
181
default = (str_, str_)
182 182
# range_sep might be used as date part separator instead
183 183
if str_.find(part_sep) < 0: return default
184 184

  

Also available in: Unified diff