fix(moderation): fixed metadata importing again
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
67836d034d
commit
fe7193601b
1 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
from datetime import timedelta, datetime
|
||||
import json
|
||||
from typing import Dict
|
||||
from redbot.core import commands
|
||||
from discord import Message, ButtonStyle, Interaction, ui
|
||||
from ..database import connect, create_guild_table, mysql_log
|
||||
|
@ -63,10 +64,10 @@ class ImportModerationView(ui.View):
|
|||
if "metadata" not in case:
|
||||
metadata = {}
|
||||
else:
|
||||
metadata: dict = case["metadata"]
|
||||
metadata.update({
|
||||
'imported_from': 'SeaCogs/Moderation'
|
||||
})
|
||||
metadata: Dict[str, any] = case["metadata"]
|
||||
metadata.update({
|
||||
'imported_from': 'SeaCogs/Moderation'
|
||||
})
|
||||
|
||||
if case["duration"] != "NULL":
|
||||
hours, minutes, seconds = map(int, case["duration"].split(":"))
|
||||
|
|
Loading…
Reference in a new issue