fix(aurora): make sure that bans with durations are imported as tempbans
This commit is contained in:
parent
fa27d12de5
commit
320db1b692
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,8 @@ class ImportAuroraView(ui.View):
|
|||
|
||||
if case["duration"] != "NULL" and case["duration"] is not None:
|
||||
duration = timedelta_from_string(case["duration"])
|
||||
if moderation_type.key == "ban":
|
||||
moderation_type = type_registry["tempban"]
|
||||
else:
|
||||
duration = None
|
||||
|
||||
|
|
Loading…
Reference in a new issue