Fix SQLite path: use AppData on Windows, posix paths for Linux/Docker

This commit is contained in:
2026-04-20 11:30:20 +03:00
parent 4ffe27df95
commit 679d36ab5b
3 changed files with 19 additions and 6 deletions

View File

@@ -11,13 +11,14 @@ from pathlib import Path
import httpx
from config import settings
from middleware.license_check import license_state
logger = logging.getLogger(__name__)
SYNC_INTERVAL_SECONDS = 6 * 60 * 60 # 6 hours
STATE_FILE = Path("license_state.json")
STATE_FILE = Path(__file__).parent.parent / "license_state.json"
def _load_persisted_state():