fix(aurora): ignore moderation cases where the moderation_id is 0
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 49s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 1m13s

This commit is contained in:
Seaswimmer 2024-06-02 23:59:17 -04:00
parent 641f45d126
commit 1990b97518
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -231,7 +231,9 @@ class Moderation(AuroraGuildModel):
if results:
cases = []
for result in results:
cases.append(cls.from_result(bot, result, guild_id))
case = cls.from_result(bot, result, guild_id)
if case.moderation_id != 0:
cases.append(case)
return cases
return []