cleanup: 清理3张死表(stock_daily/weekly/monthly)+补录漏检写入方
This commit is contained in:
@@ -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
|
||||
# 排除系统表
|
||||
|
||||
Reference in New Issue
Block a user