fix(moderation): fixed duration importing (again)
This commit is contained in:
parent
e2c165297d
commit
555f386553
1 changed files with 7 additions and 6 deletions
|
@ -69,6 +69,7 @@ class ImportModerationView(ui.View):
|
||||||
if 'metadata' not in case or not case['metadata']:
|
if 'metadata' not in case or not case['metadata']:
|
||||||
case['metadata'] = {}
|
case['metadata'] = {}
|
||||||
|
|
||||||
|
if duration != 'NULL':
|
||||||
duration_t = strptime(case['duration'], "%H:%M:%S")
|
duration_t = strptime(case['duration'], "%H:%M:%S")
|
||||||
duration = timedelta(
|
duration = timedelta(
|
||||||
hours=duration_t.hours,
|
hours=duration_t.hours,
|
||||||
|
|
Loading…
Reference in a new issue