fix(moderation): fixed duration importing, again again
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 46s

This commit is contained in:
Seaswimmer 2023-12-18 16:46:21 -05:00
parent 72cedc89d3
commit a6bbeaace6
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -69,7 +69,7 @@ class ImportModerationView(ui.View):
if 'metadata' not in case or not case['metadata']:
case['metadata'] = {}
if duration != 'NULL':
if case['duration'] != 'NULL':
duration_t = datetime.strptime(case['duration'], "%H:%M:%S")
duration = timedelta(
hours=duration_t.hours,