fix: 14个LLM cron prompt添加数据真实性铁律(置顶)+注册到提示词系统
This commit is contained in:
@@ -256,7 +256,7 @@ def write_to_signal_news(signals):
|
||||
if high_signals:
|
||||
for s in high_signals:
|
||||
conn.execute(
|
||||
"INSERT INTO signal_news (signal_id, sector, overall_sentiment, summary, key_articles, searched_stocks, source) VALUES (?, ?, ?, ?, ?, ?, ?)",
|
||||
"INSERT INTO signal_news (signal_id, sector, overall_sentiment, summary, key_articles, searched_stocks, source, processed) VALUES (?, ?, ?, ?, ?, ?, ?, 1)",
|
||||
(0, "跨市场", f"背离-{s['direction'].upper()}", s["desc"], json.dumps(s, ensure_ascii=False), "", "divergence_watch")
|
||||
)
|
||||
conn.commit()
|
||||
@@ -265,7 +265,7 @@ def write_to_signal_news(signals):
|
||||
if med_signals:
|
||||
summary = "\n".join([s["desc"] for s in med_signals])
|
||||
conn.execute(
|
||||
"INSERT INTO signal_news (signal_id, sector, overall_sentiment, summary, key_articles, searched_stocks, source) VALUES (?, ?, ?, ?, ?, ?, ?)",
|
||||
"INSERT INTO signal_news (signal_id, sector, overall_sentiment, summary, key_articles, searched_stocks, source, processed) VALUES (?, ?, ?, ?, ?, ?, ?, 1)",
|
||||
(0, "跨市场", "背离-MEDIUM", summary, json.dumps(med_signals, ensure_ascii=False), "", "divergence_watch")
|
||||
)
|
||||
conn.commit()
|
||||
|
||||
Reference in New Issue
Block a user