1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-21 23:24:18 +00:00
This commit is contained in:
Steffo 2017-09-20 12:36:38 +02:00
parent dcdb2e59ac
commit 81f6b6f742

View file

@ -422,7 +422,8 @@ def page_serv_show(sid):
if request.method == "GET": if request.method == "GET":
serv = Servizio.query.get_or_404(sid) serv = Servizio.query.get_or_404(sid)
enti = Ente.query.all() 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: else:
serv = Servizio.query.get_or_404(sid) serv = Servizio.query.get_or_404(sid)
serv.eid = request.form["eid"] serv.eid = request.form["eid"]