WIP: Refactor Aurora (3.0.0) #29

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

View file

@ -259,8 +259,9 @@ 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)
return tuple(cases)
return results