fix(moderation): added metadata to moderation importer
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 45s
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 45s
This commit is contained in:
parent
b05e6f575f
commit
452799e5ca
1 changed files with 4 additions and 0 deletions
|
@ -62,6 +62,10 @@ 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"] = {}
|
||||||
|
else:
|
||||||
|
case["metadata"].update({
|
||||||
|
'imported_from': 'SeaCogs/Moderation'
|
||||||
|
})
|
||||||
|
|
||||||
if case["duration"] != "NULL":
|
if case["duration"] != "NULL":
|
||||||
hours, minutes, seconds = map(int, case["duration"].split(":"))
|
hours, minutes, seconds = map(int, case["duration"].split(":"))
|
||||||
|
|
Loading…
Reference in a new issue