Correct config creation.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user