WIP: Moderation type registry #26
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue