From 72a97f6cb7d8d5c187a80a51c49ea49117c661d2 Mon Sep 17 00:00:00 2001 From: alwayscompiling Date: Thu, 4 Aug 2022 11:15:27 -0400 Subject: [PATCH] Correct config creation. --- data/highscores_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/highscores_data.py b/data/highscores_data.py index 39cef25..d696b74 100644 --- a/data/highscores_data.py +++ b/data/highscores_data.py @@ -9,7 +9,7 @@ from data.category import Category # pylint: disable=import-error HIGHSCORES_BACKUP_DIR = "deleted_backups" -HIGHSCORES_CONFIG_DIR = "examples" +HIGHSCORES_CONFIG_DIR = "example_config" HIGHSCORES_DATA_DIR = "highscores_data" @@ -67,8 +67,8 @@ class HighscoresData: table_obj.size = config["table_size"] for category_name in categorys: category = Category(category_name) - category.ascending = config["categories"][category]["ascending"] - category.time_record = config["categories"][category]["is_time_record"] + category.ascending = config["categories"][category.name]["ascending"] + category.time_record = config["categories"][category.name]["is_time_record"] table_obj.add_category(category) guild.add_table(table_obj)