fix(aurora): fixed a circular import
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 22s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 31s

This commit is contained in:
Seaswimmer 2024-05-04 17:49:01 -04:00
parent e7e8d60f3b
commit e46612dc08
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -9,11 +9,9 @@ from discord.errors import Forbidden, NotFound
from redbot.core import commands, data_manager from redbot.core import commands, data_manager
from redbot.core.utils.chat_formatting import error from redbot.core.utils.chat_formatting import error
from aurora.models import Change
from aurora.utilities.config import config from aurora.utilities.config import config
def check_permissions( def check_permissions(
user: User, user: User,
permissions: list, 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: def generate_dict(result: dict, guild_id: int) -> dict:
from aurora.models import Change
if result[7] is not None: if result[7] is not None:
hours, minutes, seconds = map(int, result[7].split(':')) hours, minutes, seconds = map(int, result[7].split(':'))
duration = timedelta(hours=hours, minutes=minutes, seconds=seconds) duration = timedelta(hours=hours, minutes=minutes, seconds=seconds)