[filter] correct '_regexp' attribut name in Duration
This commit is contained in:
parent
66298d2ea4
commit
7fc06dd16c
1 changed files with 1 additions and 1 deletions
|
|
@ -636,7 +636,7 @@ class Time(Filter):
|
|||
|
||||
class Duration(Time):
|
||||
klass = datetime.timedelta
|
||||
regexp = re.compile(r'((?P<hh>\d+)[:;])?(?P<mm>\d+)[;:](?P<ss>\d+)')
|
||||
_regexp = re.compile(r'((?P<hh>\d+)[:;])?(?P<mm>\d+)[;:](?P<ss>\d+)')
|
||||
kwargs = {'hours': 'hh', 'minutes': 'mm', 'seconds': 'ss'}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue