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

more bugfixes

This commit is contained in:
Steffo 2017-09-18 09:14:42 +02:00
parent 7a6af87f4a
commit 92b4ed0634

View file

@ -472,7 +472,7 @@ def page_disp_add():
except ValueError: except ValueError:
return render_template("error.htm", error="Il campo Inventario ente deve contenere un numero.") 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'], nuovodisp = Dispositivo(request.form['tipo'], request.form['marca'], request.form['modello'],
request.form['inv_ced'], request.form['inv_ente'], request.form['fornitore'], int(request.form['inv_ced']), int(request.form['inv_ente']), request.form['fornitore'],
request.form['rete'], request.form['seriale'], request.form['ip']) request.form['rete'], request.form['seriale'], request.form['ip'])
db.session.add(nuovodisp) db.session.add(nuovodisp)
db.session.commit() db.session.commit()