aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps
diff options
context:
space:
mode:
authorGravatar Boris Muratov <[email protected]>2021-03-11 02:37:44 +0200
committerGravatar GitHub <[email protected]>2021-03-11 02:37:44 +0200
commitfdc1be68a90d6ebd9dfe29369bc8a974bcaa8214 (patch)
treee7434ca63492dde77de42a7d655716bfec67b569 /pydis_site/apps
parentGet rid of stray print (diff)
Ignore deleted messaages in message counts
Co-authored-by: Joe Banks <[email protected]>
Diffstat (limited to 'pydis_site/apps')
-rw-r--r--pydis_site/apps/api/models/bot/metricity.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/models/bot/metricity.py b/pydis_site/apps/api/models/bot/metricity.py
index 7e2a68f2..db975d4e 100644
--- a/pydis_site/apps/api/models/bot/metricity.py
+++ b/pydis_site/apps/api/models/bot/metricity.py
@@ -112,7 +112,7 @@ class Metricity:
messages
LEFT JOIN channels ON channels.id = messages.channel_id
WHERE
- author_id = '%s'
+ author_id = '%s' AND NOT messages.is_deleted
GROUP BY
1
ORDER BY