File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,10 @@ def _parse_range(part: str):
381
381
def parse_date (s : str ) -> int :
382
382
# parses a given string in format YYYYMMDD or YYYY-MM-DD to a number in the form YYYYMMDD
383
383
try :
384
- return int (s .replace ("-" , "" ))
384
+ if s == "*" :
385
+ return s
386
+ else :
387
+ return int (s .replace ("-" , "" ))
385
388
except ValueError :
386
389
raise ValidationFailedException (f"not a valid date: { s } " )
387
390
@@ -477,6 +480,8 @@ def parse_time_set() -> TimeSet:
477
480
# old version
478
481
require_all ("time_type" , "time_values" )
479
482
time_values = extract_dates ("time_values" )
483
+ if len (time_values ) == 1 and time_values [0 ] == "*" :
484
+ return TimeSet (time_type , True )
480
485
return TimeSet (time_type , time_values )
481
486
482
487
if ":" not in request .values .get ("time" , "" ):
You can’t perform that action at this time.
0 commit comments