forked from blizzthewolf/SeaCogs
fix(moderation): added metadata to moderation importer
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