Updated all table data accesses to have table as part of access.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user