modified: app.py
This commit is contained in:
2
app.py
2
app.py
@@ -669,7 +669,7 @@ def wetter():
|
||||
lat, lon, display_name, state_hint, location_names = geocode_location(ort)
|
||||
if lat is None:
|
||||
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:
|
||||
return render_template("index.html", error="Keine Wetterdaten verfügbar. Bitte später erneut versuchen.")
|
||||
station_name = mosmix_station.get("name", ort)
|
||||
|
||||
Reference in New Issue
Block a user