fix(aurora): fixed a broken classmethod
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 44s

This commit is contained in:
Seaswimmer 2024-05-06 16:35:06 -04:00
parent d7ca5cab46
commit c2e017339e
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -179,7 +179,7 @@ class Moderation(AuroraGuildModel):
return cls(bot=bot, **data) return cls(bot=bot, **data)
@classmethod @classmethod
def from_result(bot: Red, result: Iterable, guild_id: int) -> dict: def from_result(cls, bot: Red, result: Iterable, guild_id: int) -> dict:
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)