Need empty dict before adding to it.

This commit is contained in:
alwayscompiling
2022-07-23 00:00:18 -04:00
parent db4672dcda
commit 7cdc7d2cef
+1
View File
@@ -16,6 +16,7 @@ def create_highscore_skeleton() -> dict:
# create the dict # create the dict
skeleton = {"highscore_channel_id": -1, "verification_channel_id": -1, "username_length": 12} skeleton = {"highscore_channel_id": -1, "verification_channel_id": -1, "username_length": 12}
config: dict = open_highscores_config() config: dict = open_highscores_config()
skeleton["tables"] = {}
for boss, categories in config["tables"].items(): for boss, categories in config["tables"].items():
skeleton["tables"][boss] = {"message_id": 0} skeleton["tables"][boss] = {"message_id": 0}
boss_categories = {} boss_categories = {}