From 0a7aaf19a64623371dede50b29570a534fbea094 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Sat, 23 May 2026 10:18:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20CMA=20=E6=B8=A9=E5=BA=A6?= =?UTF-8?q?=E6=8F=90=E5=8F=96=EF=BC=9A=5Fextract=5Ffirst=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20re.DOTALL=20=E6=A0=87=E5=BF=97=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=A4=9A=E8=A1=8C=20HTML=20=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/daily_weather_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/daily_weather_report.py b/src/utils/daily_weather_report.py index 62719ad2..5e7672af 100644 --- a/src/utils/daily_weather_report.py +++ b/src/utils/daily_weather_report.py @@ -151,7 +151,7 @@ def _fetch_cma_forecast(city_key: str) -> Optional[Dict[str, Any]]: def _extract_first(html: str, pattern: str) -> Optional[str]: - m = re.search(pattern, html, re.IGNORECASE) + m = re.search(pattern, html, re.IGNORECASE | re.DOTALL) return m.group(1) if m else None