fix(aurora): properly skip over case 0
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Failing after 26s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 37s

This commit is contained in:
Seaswimmer 2024-07-06 13:15:06 -04:00
parent 13874dd4f0
commit 6d0d79c6c7
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -259,9 +259,10 @@ class Moderation(AuroraGuildModel):
if results and return_obj and bot and guild_id:
cases = []
for result in results:
if result[0] == 0:
continue
case = cls.from_result(bot=bot, result=result, guild_id=guild_id)
if case.moderation_id != 0:
cases.append(case)
cases.append(case)
return tuple(cases)
return results