From 81f6b6f742f3ea2d19e764f777a9b5e496f8738d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 20 Sep 2017 12:36:38 +0200 Subject: [PATCH] ops --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index a810bf3..69d5ee3 100644 --- a/server.py +++ b/server.py @@ -422,7 +422,8 @@ def page_serv_show(sid): if request.method == "GET": serv = Servizio.query.get_or_404(sid) enti = Ente.query.all() - return render_template("servizio/show.htm", action="show", serv=serv, enti=enti) + servizi = Servizio.query.order_by(Servizio.locazione).all() + return render_template("servizio/show.htm", action="show", serv=serv, servizi=servizi, enti=enti) else: serv = Servizio.query.get_or_404(sid) serv.eid = request.form["eid"]