From b9a8aab5369b51f0d9f8fe91d934822a110acf40 Mon Sep 17 00:00:00 2001 From: admin <admin@example.com> Date: 星期五, 25 四月 2025 14:50:35 +0800 Subject: [PATCH] 有概念的 过滤列表更新 有强度的 过滤列表更新 解决一个9:15的除以零BUG --- strategy/market_sentiment_analysis.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/strategy/market_sentiment_analysis.py b/strategy/market_sentiment_analysis.py index 47eec14..11f0da8 100644 --- a/strategy/market_sentiment_analysis.py +++ b/strategy/market_sentiment_analysis.py @@ -549,7 +549,7 @@ # 璁$畻涓婃定鑲$エ鏁伴噺鐨勫拰 fall_sum = sum(fall_dirt.values()) - if rise_and_fall_sum != 0 or rise_sum != 0 or fall_sum != 0: + if rise_and_fall_sum != 0 and rise_sum != 0 and fall_sum != 0: # 璁$畻姣忎釜閿紙姣忎釜骞呮锛夌殑鍊煎崰鎬诲拰鐨勭櫨鍒嗘瘮 percentages = {key: round((value / rise_and_fall_sum) * 100, 2) for key, value in rise_and_fall_dirt.items()} -- Gitblit v1.8.0