modified: app.py

This commit is contained in:
simon
2026-04-24 09:35:23 +02:00
parent dc0c555684
commit def5446ea5

2
app.py
View File

@@ -669,7 +669,7 @@ def wetter():
lat, lon, display_name, state_hint, location_names = geocode_location(ort) lat, lon, display_name, state_hint, location_names = geocode_location(ort)
if lat is None: if lat is None:
return render_template("index.html", error=f'Ort "{ort}" konnte nicht gefunden werden.') return render_template("index.html", error=f'Ort "{ort}" konnte nicht gefunden werden.')
forecast, mosmix_station = get_mosmix_forecast(lat, lon, hours=168) forecast, mosmix_station = get_mosmix_forecast(lat, lon, hours=240)
if not forecast: if not forecast:
return render_template("index.html", error="Keine Wetterdaten verfügbar. Bitte später erneut versuchen.") return render_template("index.html", error="Keine Wetterdaten verfügbar. Bitte später erneut versuchen.")
station_name = mosmix_station.get("name", ort) station_name = mosmix_station.get("name", ort)