Please provide the diff for d:\web\PolyWeather\bot_listener.py to generate an accurate commit message.

This commit is contained in:
AmandaloveYang
2026-02-21 10:48:05 +08:00
parent d1e6df3e3f
commit 78c96a8a2e
+1 -1
View File
@@ -442,7 +442,7 @@ def analyze_weather_trend(weather_data, temp_symbol):
# unknown: 数据源不足,无法评估共识
timing_factors.append("仅单源")
if max_so_far is not None and forecast_high is not None:
if max_so_far is not None and forecast_high is not None and (is_peak_passed or hours_to_peak <= 3):
gap = abs(max_so_far - forecast_high)
if gap <= 0.5:
timing_score += 2