From 7e0abc0d20bf1f249a7d23e96d9d4a347eaa6ce5 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 4 Oct 2021 01:07:15 +0700 Subject: [PATCH] fix run sync_redis_state on startup --- tubearchivist/home/apps.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tubearchivist/home/apps.py b/tubearchivist/home/apps.py index f421e2f..741972d 100644 --- a/tubearchivist/home/apps.py +++ b/tubearchivist/home/apps.py @@ -8,6 +8,13 @@ from home.src.helper import RedisArchivist from home.src.index_management import index_check +def sync_redis_state(): + """make sure redis gets new config.json values""" + print("sync redis") + config_handler = ArchivistConfig() + config_handler.load_new_defaults() + + def make_folders(): """make needed cache folders here so docker doesn't mess it up""" folders = ["download", "channels", "videos", "import", "backup"] @@ -39,4 +46,5 @@ class HomeConfig(AppConfig): def ready(self): release_lock() index_check() + sync_redis_state() make_folders()