fix(aurora): fixed a programmingError when using all
This commit is contained in:
parent
1a20ae30de
commit
f5aa9f2b20
1 changed files with 3 additions and 1 deletions
|
@ -318,9 +318,11 @@ class Moderation(AuroraGuildModel):
|
|||
conditions = []
|
||||
|
||||
if types:
|
||||
if 'all' in types:
|
||||
types = type_registry.keys()
|
||||
conditions.append(f"moderation_type IN ({', '.join(['?' for _ in types])})")
|
||||
for t in types:
|
||||
params.append(t.key)
|
||||
params.append(t)
|
||||
if before:
|
||||
conditions.append("timestamp < ?")
|
||||
params.append(int(before.timestamp()))
|
||||
|
|
Loading…
Reference in a new issue