From 014b7da2ba3f4b4c339edd431931c93f3cb24f24 Mon Sep 17 00:00:00 2001 From: Fingon00 Date: Sun, 29 Dec 2024 10:50:11 -0500 Subject: [PATCH 1/2] Fixes --- commands/search_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/search_commands.py b/commands/search_commands.py index 181210c..5137b35 100644 --- a/commands/search_commands.py +++ b/commands/search_commands.py @@ -337,7 +337,7 @@ async def stats(self, interaction: discord.Interaction, tourney_only:bool=False) asyncio.create_task(interaction.channel.send(summary) ) summary = "Point Progression:\n" for username, count in vp_count.most_common(): - summary += f"{username}: {count}/300 VPs ({str(finished_tourney_games[username])} games finished)\n" + summary += f"{username}: {round(count,2)}/300 VPs ({str(finished_tourney_games[username])} games)\n" asyncio.create_task(interaction.channel.send(summary) ) summary = "Faction Wins:\n" for faction, count in faction_victory_count.most_common(): @@ -347,6 +347,6 @@ async def stats(self, interaction: discord.Interaction, tourney_only:bool=False) for faction, count in faction_performance.most_common(): relative_faction_performance[faction] += int(count/max_faction_performance[faction] * 100) for faction, count in relative_faction_performance.most_common(): - summary += f"{faction}: {count} out of 100 possible points (in {str(max_faction_performance[faction]/100)} games)\n" + summary += f"{faction}: {count} out of 100 possible points (in {str(int(max_faction_performance[faction]/100))} games)\n" asyncio.create_task(interaction.channel.send(summary) ) From d49dc6d3c8c6d6520271758230497d01d2947ca1 Mon Sep 17 00:00:00 2001 From: Fingon00 Date: Sun, 29 Dec 2024 10:51:11 -0500 Subject: [PATCH 2/2] Update search_commands.py --- commands/search_commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/search_commands.py b/commands/search_commands.py index 5137b35..b01ef20 100644 --- a/commands/search_commands.py +++ b/commands/search_commands.py @@ -268,6 +268,7 @@ async def stats(self, interaction: discord.Interaction, tourney_only:bool=False) relative_faction_performance = Counter() positional_drafts = [Counter() for _ in range(6)] await interaction.response.defer(thinking=True) + await interaction.followup.send("Here are your stats") lowerLim = 100 higherLim = 999 if tourney_only: