From e46612dc08a75db8fe789243b3c77a58793a9688 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 4 May 2024 17:49:01 -0400 Subject: [PATCH] fix(aurora): fixed a circular import --- aurora/utilities/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aurora/utilities/utils.py b/aurora/utilities/utils.py index 5f7de72..874ade3 100644 --- a/aurora/utilities/utils.py +++ b/aurora/utilities/utils.py @@ -9,11 +9,9 @@ from discord.errors import Forbidden, NotFound from redbot.core import commands, data_manager from redbot.core.utils.chat_formatting import error -from aurora.models import Change from aurora.utilities.config import config - def check_permissions( user: User, permissions: list, @@ -127,6 +125,7 @@ async def get_next_case_number(guild_id: str, cursor=None) -> int: def generate_dict(result: dict, guild_id: int) -> dict: + from aurora.models import Change if result[7] is not None: hours, minutes, seconds = map(int, result[7].split(':')) duration = timedelta(hours=hours, minutes=minutes, seconds=seconds)