mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-07-05 17:31:39 +02:00
fix(backup): allow backup job scheduling before db reference is set
The _db reference is set by init_retention_schedule() which runs after schedule_daily_archiving(). The backup job checks _db at runtime. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -613,9 +613,9 @@ def schedule_daily_archiving():
|
||||
|
||||
def init_backup_schedule():
|
||||
"""Initialize daily backup job from config."""
|
||||
global _scheduler, _db
|
||||
global _scheduler
|
||||
|
||||
if _scheduler is None or _db is None:
|
||||
if _scheduler is None:
|
||||
return
|
||||
|
||||
if not config.MC_BACKUP_ENABLED:
|
||||
|
||||
Reference in New Issue
Block a user