From 2a38a19f1894256b93f10e087c3480ab7127fb3b Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 16 Jun 2026 15:17:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E5=8F=A0=E5=8A=A0=E8=B6=85?= =?UTF-8?q?=E6=97=B6=20500=E2=86=923000ms=EF=BC=8C=E9=81=BF=E5=85=8D=20SQL?= =?UTF-8?q?ite=20=E9=94=81=E7=AB=9E=E4=BA=89=E4=B8=8B=E7=9A=84=E8=AF=AF?= =?UTF-8?q?=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 d10a7fba..97bdbb60 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", "2000") - or "2000" + os.getenv("POLYWEATHER_CITY_CHART_OPTIONAL_OVERLAY_TIMEOUT_MS", "3000") + or "3000" ) except ValueError: - timeout_ms = 2000 + timeout_ms = 3000 return max(0.001, min(3.0, timeout_ms / 1000.0))