WIP: Refactor Aurora (3.0.0) #29
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