locations are returned alphabetically

This commit is contained in:
2018-11-10 01:05:31 +01:00
parent d2e6e2de7c
commit 4d6ef6a07b
+1 -1
View File
@@ -49,7 +49,7 @@ def index():
@app.route('/parts/getlocations/')
def get_locations():
s = 'select id, name from locations'
s = 'select id, name from locations order by name;'
r = db_engine.execute(text(s))
l = {}
for row in r: