fix(moderation): added metadata to moderation importer

This commit is contained in:
Seaswimmer 2023-12-18 16:53:13 -05:00
parent b05e6f575f
commit 452799e5ca
Signed by untrusted user: 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(":"))