Spaces:
Sleeping
Sleeping
Create analytics.py
Browse files- 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 |
+
)
|