From aad917ccb657ba20f32ebe6218ba12ac032916c5 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 16 Jun 2026 15:17:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E8=A1=A8=E5=8F=A0?= =?UTF-8?q?=E5=8A=A0=E8=B6=85=E6=97=B6=20500ms=E2=86=922000ms=20=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=20overlay=20=E8=A2=AB=E8=B7=B3=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/services/city_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/services/city_api.py b/web/services/city_api.py index 141d05a3..d10a7fba 100644 --- a/web/services/city_api.py +++ b/web/services/city_api.py @@ -77,11 +77,11 @@ def _city_detail_batch_response_cache_ttl() -> float: def _city_chart_optional_overlay_timeout_sec() -> float: try: timeout_ms = int( - os.getenv("POLYWEATHER_CITY_CHART_OPTIONAL_OVERLAY_TIMEOUT_MS", "500") - or "500" + os.getenv("POLYWEATHER_CITY_CHART_OPTIONAL_OVERLAY_TIMEOUT_MS", "2000") + or "2000" ) except ValueError: - timeout_ms = 500 + timeout_ms = 2000 return max(0.001, min(3.0, timeout_ms / 1000.0))