WIP: Refactor Aurora (3.0.0) #29
1 changed files with 3 additions and 2 deletions
|
@ -259,8 +259,9 @@ class Moderation(AuroraGuildModel):
|
||||||
if results and return_obj and bot and guild_id:
|
if results and return_obj and bot and guild_id:
|
||||||
cases = []
|
cases = []
|
||||||
for result in results:
|
for result in results:
|
||||||
|
if result[0] == 0:
|
||||||
|
continue
|
||||||
case = cls.from_result(bot=bot, result=result, guild_id=guild_id)
|
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 tuple(cases)
|
||||||
return results
|
return results
|
||||||
|
|
Loading…
Reference in a new issue