WIP: Refactor Aurora (3.0.0) #29

Draft
cswimr wants to merge 347 commits from aurora-pydantic into main
Showing only changes of commit f5aa9f2b20 - Show all commits

View file

@ -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()))