Order stations by name

This commit is contained in:
clerie 2020-04-08 18:12:06 +02:00
parent de5ea2fc6b
commit 3b05156d56

View File

@ -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)