WIP: Refactor Aurora (3.0.0) #29

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

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 []