WIP: Refactor Aurora (3.0.0) #29

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

View file

@ -166,7 +166,7 @@ class Moderation(AuroraGuildModel):
@classmethod
def from_result(cls, bot: Red, result: Iterable, guild_id: int) -> "Moderation":
if result[7] is not None:
logger.debug(result[7])
logger.debug("%s | %s", result[7], type(result[7]))
hours, minutes, seconds = map(int, result[7].split(':'))
duration = timedelta(hours=hours, minutes=minutes, seconds=seconds)
else: