fix: volume_deep DB路径修复+全面接入策略 — 所有重评自动识别量价模式
This commit is contained in:
@@ -472,7 +472,9 @@ def analyze_volume_deep(code):
|
||||
import sqlite3
|
||||
from pathlib import Path
|
||||
|
||||
DATA_DIR = Path(__file__).parent.parent / "data"
|
||||
DATA_DIR = Path(__file__).parent / "scripts" / "data"
|
||||
if not (DATA_DIR / "mofin.db").exists():
|
||||
DATA_DIR = Path(__file__).parent / "data"
|
||||
try:
|
||||
conn = sqlite3.connect(str(DATA_DIR / "mofin.db"))
|
||||
row = conn.execute("SELECT cache_json FROM mtf_cache WHERE code=?", (code,)).fetchone()
|
||||
|
||||
Reference in New Issue
Block a user