Refactor naming of keys

This commit is contained in:
amcmanu3 2023-02-05 13:06:52 -05:00
parent 3eeb00e524
commit a70d531ae1
2 changed files with 5 additions and 2 deletions

View File

@ -405,7 +405,7 @@ class Helpers:
"cookie_expire": 30,
"show_errors": True,
"history_max_age": 7,
"stats_update_frequency": 30,
"stats_update_frequency_seconds": 30,
"delete_default_json": False,
"show_contribute_link": True,
"virtual_terminal_lines": 70,
@ -417,6 +417,7 @@ class Helpers:
"allow_nsfw_profile_pictures": False,
"enable_user_self_delete": False,
"reset_secrets_on_next_boot": False,
"dir_size_poll_freq_minutes": 5,
}
def get_all_settings(self):

View File

@ -635,7 +635,9 @@ class TasksManager:
logger.error(f"Task failed with error: {event.exception}")
def start_stats_recording(self):
stats_update_frequency = self.helper.get_setting("stats_update_frequency")
stats_update_frequency = self.helper.get_setting(
"stats_update_frequency_seconds"
)
logger.info(
f"Stats collection frequency set to {stats_update_frequency} seconds"
)