From 92b4ed0634f9856eab934f2a3300224a21a5b037 Mon Sep 17 00:00:00 2001 From: Stefano Date: Mon, 18 Sep 2017 09:14:42 +0200 Subject: [PATCH] more bugfixes --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index db45700..892c89c 100644 --- a/server.py +++ b/server.py @@ -472,7 +472,7 @@ 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'], - 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']) db.session.add(nuovodisp) db.session.commit()