Browse Source

Order stations by name

dependabot/npm_and_yarn/jquery-3.5.0
clerie 2 years ago
parent
commit
3b05156d56
  1. 2
      wetter/views.py

2
wetter/views.py

@ -17,7 +17,7 @@ def about(): @@ -17,7 +17,7 @@ def about():
@app.route('/station/')
def stations():
stations = Stations.query.order_by(Stations.dwd_id.asc()).all()
stations = Stations.query.order_by(Stations.name.asc()).order_by(Stations.state.asc()).all()
return render_template('stations.html', stations=stations)

Loading…
Cancel
Save