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 = []
|
conditions = []
|
||||||
|
|
||||||
if types:
|
if types:
|
||||||
|
if 'all' in types:
|
||||||
|
types = type_registry.keys()
|
||||||
conditions.append(f"moderation_type IN ({', '.join(['?' for _ in types])})")
|
conditions.append(f"moderation_type IN ({', '.join(['?' for _ in types])})")
|
||||||
for t in types:
|
for t in types:
|
||||||
params.append(t.key)
|
params.append(t)
|
||||||
if before:
|
if before:
|
||||||
conditions.append("timestamp < ?")
|
conditions.append("timestamp < ?")
|
||||||
params.append(int(before.timestamp()))
|
params.append(int(before.timestamp()))
|
||||||
|
|
Loading…
Reference in a new issue