aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pydis_site/apps/api/models/bot/metricity.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pydis_site/apps/api/models/bot/metricity.py b/pydis_site/apps/api/models/bot/metricity.py
index afbcbad8..93d0df71 100644
--- a/pydis_site/apps/api/models/bot/metricity.py
+++ b/pydis_site/apps/api/models/bot/metricity.py
@@ -57,7 +57,11 @@ class Metricity:
to_timestamp(floor((extract('epoch' from created_at) / 600 )) * 600)
AT TIME ZONE 'UTC' AS interval
FROM messages
- WHERE author_id='%s' AND NOT is_deleted GROUP BY interval) block_query;
+ WHERE
+ author_id='%s'
+ AND NOT is_deleted
+ GROUP BY interval
+ ) block_query;
""",
[user_id]
)