eishit32 commited on
Commit
69a03ee
·
verified ·
1 Parent(s): 818d6ef

Create analytics.py

Browse files
Files changed (1) hide show
  1. analytics.py +8 -0
analytics.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from logs import USAGE_LOGS
2
+
3
+ def top_users():
4
+ return sorted(
5
+ USAGE_LOGS.items(),
6
+ key=lambda x: len(x[1]),
7
+ reverse=True
8
+ )