fix run sync_redis_state on startup

pull/51/head
simon 3 years ago
parent b0fb2bbb00
commit 7e0abc0d20

@ -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()

Loading…
Cancel
Save