Fix SQLite path: use AppData on Windows, posix paths for Linux/Docker
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user