misc(aurora): added a temporary logging call
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 41s

This commit is contained in:
Seaswimmer 2024-08-13 16:31:00 -04:00
parent f5aa9f2b20
commit 71840cc148
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -320,9 +320,9 @@ class Moderation(AuroraGuildModel):
if types: if types:
if 'all' in types: if 'all' in types:
types = type_registry.keys() types = type_registry.keys()
logger.debug("Getting all types: %s", types)
conditions.append(f"moderation_type IN ({', '.join(['?' for _ in types])})") conditions.append(f"moderation_type IN ({', '.join(['?' for _ in types])})")
for t in types: params.extend([t.key for t in types])
params.append(t)
if before: if before:
conditions.append("timestamp < ?") conditions.append("timestamp < ?")
params.append(int(before.timestamp())) params.append(int(before.timestamp()))