From 71840cc14873c8c152e20b10b5370261541a72a8 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Tue, 13 Aug 2024 16:31:00 -0400 Subject: [PATCH] misc(aurora): added a temporary logging call --- aurora/models/moderation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aurora/models/moderation.py b/aurora/models/moderation.py index 0e406d7..b9e9127 100644 --- a/aurora/models/moderation.py +++ b/aurora/models/moderation.py @@ -320,9 +320,9 @@ class Moderation(AuroraGuildModel): if types: if 'all' in types: types = type_registry.keys() + logger.debug("Getting all types: %s", types) conditions.append(f"moderation_type IN ({', '.join(['?' for _ in types])})") - for t in types: - params.append(t) + params.extend([t.key for t in types]) if before: conditions.append("timestamp < ?") params.append(int(before.timestamp()))