1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-21 23:24:18 +00:00

whyyyyyyyy

This commit is contained in:
Steffo 2017-09-18 09:17:18 +02:00
parent 24ceb9ac9e
commit d8b26c03de

View file

@ -472,8 +472,10 @@ def page_disp_add():
except ValueError:
return render_template("error.htm", error="Il campo Inventario ente deve contenere un numero.")
nuovodisp = Dispositivo(request.form['tipo'], request.form['marca'], request.form['modello'],
int(request.form['inv_ced']), int(request.form['inv_ente']), request.form['fornitore'],
request.form['rete'], request.form['seriale'], request.form['ip'])
int(request.form['inv_ced']) if request.form['inv_ced'] else None,
int(request.form['inv_ente']) if request.form['inv_ente'] else None,
request.form['fornitore'], request.form['rete'], request.form['seriale'],
request.form['ip'])
db.session.add(nuovodisp)
db.session.commit()
# Trova tutti gli utenti, edizione sporco hack in html