Updated all table data accesses to have table as part of access.

This commit is contained in:
alwayscompiling
2022-07-22 21:30:46 -04:00
parent 307ef86493
commit d0131b1044
5 changed files with 8 additions and 8 deletions
+1
View File
@@ -43,6 +43,7 @@ class PostHighscores(commands.Cog, name="Post Highscores"):
message: nextcord.Message = await send_highscore_message(channel, boss)
await message.edit(view=SubmissionCreateButton(self.bot))
# Saving in case new message was sent.
save_highscores_data(highscores_data)
-1
View File
@@ -5,7 +5,6 @@ Bot command to submit a score
from nextcord.ext import commands
from highscores import highscores_data # pylint: disable=import-error
from utilities.utils import submit_score # pylint: disable=import-error
from .verification_view import VerificationView
+1 -1
View File
@@ -55,7 +55,7 @@ def get_submission_embed(userid: int) -> nextcord.Embed:
def category_select_options(boss_name: str) -> "list[nextcord.SelectOption]":
"""Returns list of categories for a given boss."""
options: "list[nextcord.SelectOption]" = []
boss_dict = highscores_data[boss_name]
boss_dict = highscores_data["tables"][boss_name]
for category in boss_dict["categories"].items():
options.append(nextcord.SelectOption(label=category[0]))