From 3b05156d563494896ab65dbb36d7247cdc775867 Mon Sep 17 00:00:00 2001 From: clerie Date: Wed, 8 Apr 2020 18:12:06 +0200 Subject: [PATCH] Order stations by name --- wetter/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wetter/views.py b/wetter/views.py index dfdc52a..430d6cf 100644 --- a/wetter/views.py +++ b/wetter/views.py @@ -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)