事件标记线bug修复
This commit is contained in:
@@ -4402,6 +4402,11 @@ def api_event_related_stocks(event_id):
|
|||||||
from sqlalchemy import text
|
from sqlalchemy import text
|
||||||
|
|
||||||
event = Event.query.get_or_404(event_id)
|
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()
|
related_stocks = event.related_stocks.order_by(RelatedStock.correlation.desc()).all()
|
||||||
|
|
||||||
# 获取ClickHouse客户端用于分时数据查询
|
# 获取ClickHouse客户端用于分时数据查询
|
||||||
|
|||||||
Reference in New Issue
Block a user