aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps
diff options
context:
space:
mode:
authorGravatar Boris Muratov <[email protected]>2021-03-07 01:05:09 +0200
committerGravatar Boris Muratov <[email protected]>2021-03-07 01:05:09 +0200
commitd2690bbedb5f5ef221cbfaa42ad78ff8fcc263f2 (patch)
tree8ad2da0c8c76701c9235f6f2ec82d8e2cdb04294 /pydis_site/apps
parentAdd route to get a member's data for helper review (diff)
Amend top_channel_activity return type
Diffstat (limited to 'pydis_site/apps')
-rw-r--r--pydis_site/apps/api/models/bot/metricity.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pydis_site/apps/api/models/bot/metricity.py b/pydis_site/apps/api/models/bot/metricity.py
index af5e1f3b..29a43513 100644
--- a/pydis_site/apps/api/models/bot/metricity.py
+++ b/pydis_site/apps/api/models/bot/metricity.py
@@ -1,3 +1,5 @@
+from typing import List, Tuple
+
from django.db import connections
BLOCK_INTERVAL = 10 * 60 # 10 minute blocks
@@ -90,7 +92,7 @@ class Metricity:
return values[0]
- def top_channel_activity(self, user_id: str) -> int:
+ def top_channel_activity(self, user_id: str) -> List[Tuple[str, int]]:
"""
Query the top three channels in which the user is most active.