增加主力资金选股

This commit is contained in:
oficcejo
2025-10-09 20:51:10 +08:00
parent ad21672786
commit 88c7db1ab9
11 changed files with 3230 additions and 44 deletions
+3 -2
View File
@@ -249,8 +249,9 @@ def display_pdf_export_section(stock_info, agents_results, discussion_result, fi
col1, col2, col3 = st.columns([1, 2, 1])
with col2:
# 生成PDF报告按钮
if st.button("📄 生成并下载PDF报告", type="primary", use_container_width=True):
# 生成PDF报告按钮(使用股票代码作为key的一部分,确保唯一性)
button_key = f"pdf_btn_{stock_info.get('symbol', 'unknown')}"
if st.button("📄 生成并下载PDF报告", type="primary", use_container_width=True, key=button_key):
with st.spinner("正在生成PDF报告..."):
try:
# 生成PDF内容