cleanup: 清理3张死表(stock_daily/weekly/monthly)+补录漏检写入方

This commit is contained in:
知微
2026-07-09 00:24:23 +08:00
parent ccea9fcf09
commit 5139d46dc9
2 changed files with 107 additions and 129 deletions
+8
View File
@@ -390,6 +390,14 @@ def build_report():
for tname, cnt in sorted(db_stats.items()):
readers = flows["db_read"].get(tname, [])
writers = flows["db_write"].get(tname, [])
# 扫描器漏检的手动补录写入方
_manual_writers = {
"candidates": ["mofin_db", "market_screener"],
"candidate_score_history": ["mofin_db"],
"strategy_feedback": ["mofin_db", "server"],
}
if not writers and tname in _manual_writers:
writers = _manual_writers[tname]
has_input = len(writers) > 0
has_output = len(readers) > 0
# 排除系统表