fix: copy and move

This commit is contained in:
kodi
2026-03-11 11:45:06 +01:00
parent 05816751b1
commit 523395b92a
14 changed files with 239 additions and 15 deletions
+5 -1
View File
@@ -2,6 +2,7 @@ from __future__ import annotations
import os
from dataclasses import dataclass
from pathlib import Path
@dataclass(frozen=True)
@@ -35,5 +36,8 @@ def _load_root_aliases() -> dict[str, str]:
def get_settings() -> Settings:
task_db_path = os.getenv("WEBMANAGER_TASK_DB_PATH", "webui/backend/data/tasks.db").strip()
default_task_db_path = str(Path(__file__).resolve().parents[1] / "data" / "tasks.db")
task_db_path = os.getenv("WEBMANAGER_TASK_DB_PATH", default_task_db_path).strip()
if not task_db_path:
task_db_path = default_task_db_path
return Settings(root_aliases=_load_root_aliases(), task_db_path=task_db_path)