chore: deployed cleanup + hygiene system

This commit is contained in:
知微
2026-07-20 19:05:03 +08:00
parent 7f3ff66be4
commit 54c48dc5d7
926 changed files with 897917 additions and 7169 deletions
+2 -3
View File
@@ -72,9 +72,8 @@ def detect_scenario():
try:
# 优先 DB
import sqlite3
from pathlib import Path
db = sqlite3.connect(str(Path(__file__).parent.parent / "data" / "mofin.db"))
from mofin_db import get_conn
db = get_conn()
mrow = db.execute(
"SELECT indices, structure, sector_mood FROM macro_context_log "
"WHERE has_valid_data=1 ORDER BY created_at DESC LIMIT 1"