From fe7193601ba37a364ec7c3454a5b82186cf73202 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 18 Dec 2023 16:58:24 -0500 Subject: [PATCH] fix(moderation): fixed metadata importing again --- moderation/importers/moderation.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/moderation/importers/moderation.py b/moderation/importers/moderation.py index 65af40e..ff5baf0 100644 --- a/moderation/importers/moderation.py +++ b/moderation/importers/moderation.py @@ -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(":"))