WIP: Refactor Aurora (3.0.0) #29

Draft
cswimr wants to merge 347 commits from aurora-pydantic into main
Showing only changes of commit e46612dc08 - Show all commits

View file

@ -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)