feat: implement interactive weather map application with city markers, detail panel, and temperature forecast chart.

This commit is contained in:
2569718930@qq.com
2026-03-05 19:45:57 +08:00
parent b4e323402d
commit d29cb15c41
2 changed files with 14 additions and 0 deletions
+2
View File
@@ -586,6 +586,7 @@ async def city_history(name: str):
act = rec.get("actual_high")
deb = rec.get("deb_prediction")
mu = rec.get("mu")
mgm = rec.get("forecasts", {}).get("MGM")
# Only return items where we have at least an actual or a prediction
out.append({
@@ -593,6 +594,7 @@ async def city_history(name: str):
"actual": float(act) if act is not None else None,
"deb": float(deb) if deb is not None else None,
"mu": float(mu) if mu is not None else None,
"mgm": float(mgm) if mgm is not None else None,
})
return {"history": out}