diff options
author | 2020-10-30 23:57:32 +0000 | |
---|---|---|
committer | 2020-10-30 23:57:32 +0000 | |
commit | 3595f62f00ef8786317c4af1f3522bd13f7656a1 (patch) | |
tree | 0cfbc8aabb13674b13a224f464906d45ac17225e /pydis_site/apps | |
parent | Add new column to Postgres init (diff) |
Update docstring in metricity block query
Diffstat (limited to 'pydis_site/apps')
-rw-r--r-- | pydis_site/apps/api/models/bot/metricity.py | 6 |
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 60b2e73d..bb1db708 100644 --- a/pydis_site/apps/api/models/bot/metricity.py +++ b/pydis_site/apps/api/models/bot/metricity.py @@ -47,7 +47,11 @@ class Metricity: return values[0] def total_message_blocks(self, user_id: str) -> int: - """Query number of 10 minute blocks the user has been active during.""" + """ + Query number of 10 minute blocks during which the user has been active. + + This metric prevents users from spamming to achieve the message total threshold. + """ self.cursor.execute( """ SELECT |