kryten-cli 2.3.2__tar.gz → 2.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -816,8 +816,8 @@ class KrytenCLI:
|
|
|
816
816
|
async def cmd_userstats_all(
|
|
817
817
|
self,
|
|
818
818
|
format: str = "text",
|
|
819
|
-
top_users: int =
|
|
820
|
-
media_history: int =
|
|
819
|
+
top_users: int = 20,
|
|
820
|
+
media_history: int = 15,
|
|
821
821
|
leaderboards: int = 10
|
|
822
822
|
) -> None:
|
|
823
823
|
"""Fetch and display all channel statistics from userstats service."""
|
|
@@ -874,10 +874,6 @@ class KrytenCLI:
|
|
|
874
874
|
# Leaderboards section
|
|
875
875
|
leaderboards_data = data.get("leaderboards", {})
|
|
876
876
|
|
|
877
|
-
print("\n--- Message Leaderboard ---")
|
|
878
|
-
for i, entry in enumerate(leaderboards_data.get("messages", []), 1):
|
|
879
|
-
print(f"{i:2}. {entry['username']:20} {entry['count']:,} messages")
|
|
880
|
-
|
|
881
877
|
print("\n--- Kudos Leaderboard ---")
|
|
882
878
|
for i, entry in enumerate(leaderboards_data.get("kudos", []), 1):
|
|
883
879
|
print(f"{i:2}. {entry['username']:20} {entry['count']:,} kudos")
|
|
@@ -1099,14 +1095,14 @@ def create_parser() -> argparse.ArgumentParser:
|
|
|
1099
1095
|
all_stats_parser.add_argument(
|
|
1100
1096
|
"--top-users",
|
|
1101
1097
|
type=int,
|
|
1102
|
-
default=
|
|
1103
|
-
help="Number of top users to show (default:
|
|
1098
|
+
default=20,
|
|
1099
|
+
help="Number of top users to show (default: 20)"
|
|
1104
1100
|
)
|
|
1105
1101
|
all_stats_parser.add_argument(
|
|
1106
1102
|
"--media-history",
|
|
1107
1103
|
type=int,
|
|
1108
|
-
default=
|
|
1109
|
-
help="Number of recent media items to show (default:
|
|
1104
|
+
default=15,
|
|
1105
|
+
help="Number of recent media items to show (default: 15)"
|
|
1110
1106
|
)
|
|
1111
1107
|
all_stats_parser.add_argument(
|
|
1112
1108
|
"--leaderboards",
|
|
File without changes
|
|
File without changes
|