fix(moderation): added metadata to moderation importer
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 45s

This commit is contained in:
Seaswimmer 2023-12-18 16:53:13 -05:00
parent b05e6f575f
commit 452799e5ca
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -62,6 +62,10 @@ class ImportModerationView(ui.View):
if "metadata" not in case or not case["metadata"]:
case["metadata"] = {}
else:
case["metadata"].update({
'imported_from': 'SeaCogs/Moderation'
})
if case["duration"] != "NULL":
hours, minutes, seconds = map(int, case["duration"].split(":"))