chore: deployed cleanup + hygiene system
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user