fix(aurora): properly skip over case 0
This commit is contained in:
parent
13874dd4f0
commit
6d0d79c6c7
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue