Guild id is a string in highscores data json.

This commit is contained in:
alwayscompiling
2022-07-22 23:39:51 -04:00
parent be29194a57
commit 5d3a1568a2
5 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -92,7 +92,7 @@ async def submit_score(
"""
boss_category_config = highscores_config["categories"][category]
guild_data = highscores_data[interaction.guild.id]
guild_data = highscores_data[str(interaction.guild.id)]
# create score tuple for either time or int
# define sort index
@@ -158,5 +158,5 @@ async def submit_score(
await send_highscore_message(channel, boss_name, guild_data)
# save data
highscores_data[interaction.guild.id] = guild_data
highscores_data[str(interaction.guild.id)] = guild_data
save_highscores_data(highscores_data)