From d067da23008d864c3ef4b0d67e91782feda34015 Mon Sep 17 00:00:00 2001 From: alwayscompiling Date: Fri, 22 Jul 2022 23:02:24 -0400 Subject: [PATCH] Changed config table name. --- cogs/post_highscores/__init__.py | 2 +- example_config/runescape_bosses.json | 2 +- utilities/data_storage.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/post_highscores/__init__.py b/cogs/post_highscores/__init__.py index c26e885..21d901b 100644 --- a/cogs/post_highscores/__init__.py +++ b/cogs/post_highscores/__init__.py @@ -38,7 +38,7 @@ class PostHighscores(commands.Cog, name="Post Highscores"): assert channel is not None, await ctx.send(error_response) for boss, categories in highscores_config[ # pylint: disable=unused-variable - "highscore_table" + "tables" ].items(): message: nextcord.Message = await send_highscore_message(channel, boss) await message.edit(view=SubmissionCreateButton(self.bot)) diff --git a/example_config/runescape_bosses.json b/example_config/runescape_bosses.json index 3dca91f..1b42bc9 100755 --- a/example_config/runescape_bosses.json +++ b/example_config/runescape_bosses.json @@ -1,5 +1,5 @@ { - "highscore_table": { + "tables": { "The Ambassador": [ "Kill Count", "Kill Time", diff --git a/utilities/data_storage.py b/utilities/data_storage.py index 8809fcc..b1b83b9 100644 --- a/utilities/data_storage.py +++ b/utilities/data_storage.py @@ -16,7 +16,7 @@ def create_highscore_skeleton() -> dict: # create the dict skeleton = {"highscore_channel_id": -1, "verification_channel_id": -1, "username_length": 12} config: dict = open_highscores_config() - for boss, categories in config["highscore_table"].items(): + for boss, categories in config["tables"].items(): skeleton["tables"][boss] = {"message_id": 0} boss_categories = {} for category in categories: