事件标记线bug修复

This commit is contained in:
2025-12-25 11:46:09 +08:00
parent 7be7e13e69
commit c48b254ff7

View File

@@ -4402,6 +4402,11 @@ def api_event_related_stocks(event_id):
from sqlalchemy import text
event = Event.query.get_or_404(event_id)
# 更新浏览量
event.view_count = (event.view_count or 0) + 1
db.session.commit()
related_stocks = event.related_stocks.order_by(RelatedStock.correlation.desc()).all()
# 获取ClickHouse客户端用于分时数据查询