add 'timedelta' class to the global namespace in filter expressions
(https://github.com/mikf/gallery-dl/issues/2308#issuecomment-1046135924)
This commit is contained in:
parent
cf58048bd4
commit
00fbc942e5
@ -424,6 +424,7 @@ GLOBALS = {
|
||||
"parse_int": text.parse_int,
|
||||
"urlsplit" : urllib.parse.urlsplit,
|
||||
"datetime" : datetime.datetime,
|
||||
"timedelta": datetime.timedelta,
|
||||
"abort" : raises(exception.StopExtraction),
|
||||
"terminate": raises(exception.TerminateExtraction),
|
||||
"re" : re,
|
||||
|
Loading…
x
Reference in New Issue
Block a user