feat: implement FastAPI web map API for PolyWeather, integrating weather data collection, analysis, and Polymarket market data.

This commit is contained in:
2569718930@qq.com
2026-03-04 19:16:32 +08:00
parent 70af75e91f
commit f2e05178fe
+1 -4
View File
@@ -117,10 +117,7 @@ def _analyze(city: str) -> Dict[str, Any]:
city_lower = city.lower()
cur_temp = _sf(mc.get("temp"))
# For Ankara, prioritize MGM over METAR as it's often more representative of city center
if city_lower == "ankara" and _sf(mg_cur.get("temp")) is not None:
cur_temp = _sf(mg_cur.get("temp"))
elif cur_temp is None:
if cur_temp is None:
cur_temp = _sf(mg_cur.get("temp"))
max_so_far = _sf(mc.get("max_temp_so_far"))