Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions commands/search_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -337,7 +338,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():
Expand All @@ -347,6 +348,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) )

Loading