diff options
author | 2021-03-11 02:37:44 +0200 | |
---|---|---|
committer | 2021-03-11 02:37:44 +0200 | |
commit | fdc1be68a90d6ebd9dfe29369bc8a974bcaa8214 (patch) | |
tree | e7434ca63492dde77de42a7d655716bfec67b569 /pydis_site/apps/api/models | |
parent | Get rid of stray print (diff) |
Ignore deleted messaages in message counts
Co-authored-by: Joe Banks <[email protected]>
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r-- | pydis_site/apps/api/models/bot/metricity.py | 2 |
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 |