Order stations by name
This commit is contained in:
parent
de5ea2fc6b
commit
3b05156d56
@ -17,7 +17,7 @@ def about():
|
|||||||
|
|
||||||
@app.route('/station/')
|
@app.route('/station/')
|
||||||
def stations():
|
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)
|
return render_template('stations.html', stations=stations)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user