Finalize SQLite defaults and refresh calibration artifacts

This commit is contained in:
2569718930@qq.com
2026-04-02 23:24:38 +08:00
parent 603546f2f9
commit 95c0c452f1
19 changed files with 1055 additions and 2442 deletions
+6 -1
View File
@@ -4,13 +4,18 @@ import os
from datetime import datetime as _dt
from datetime import timedelta as _td
from src.database.runtime_state import STATE_STORAGE_FILE, get_state_storage_mode
class DebAnalysisService:
"""DEB analytics adapter with lazy imports to trim cold startup."""
def __init__(self, project_root: str):
self.project_root = project_root
self.history_file = os.path.join(project_root, "data", "daily_records.json")
if get_state_storage_mode() == STATE_STORAGE_FILE:
self.history_file = os.path.join(project_root, "data", "daily_records.json")
else:
self.history_file = ""
@staticmethod
def _load_aliases() -> dict[str, str]: