From a6bbeaace6b11c1c985e927b987292eb6cfa0cd6 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 18 Dec 2023 16:46:21 -0500 Subject: [PATCH] fix(moderation): fixed duration importing, again again --- moderation/importers/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/importers/moderation.py b/moderation/importers/moderation.py index 090f47c..addf85b 100644 --- a/moderation/importers/moderation.py +++ b/moderation/importers/moderation.py @@ -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,