forked from cswimr/SeaCogs
fix(moderation): fixed duration importing, again again
This commit is contained in:
parent
72cedc89d3
commit
a6bbeaace6
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +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':
|
if case['duration'] != 'NULL':
|
||||||
duration_t = datetime.strptime(case['duration'], "%H:%M:%S")
|
duration_t = datetime.strptime(case['duration'], "%H:%M:%S")
|
||||||
duration = timedelta(
|
duration = timedelta(
|
||||||
hours=duration_t.hours,
|
hours=duration_t.hours,
|
||||||
|
|
Loading…
Reference in a new issue