From d15e422bd36849761e28987997f3145da2ee6e06 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 19 Sep 2017 17:13:23 +0200 Subject: [PATCH] PEP8 stuff --- server.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 4467d5e..d7acd8a 100644 --- a/server.py +++ b/server.py @@ -546,7 +546,8 @@ def page_disp_add(): 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['rete'], request.form['seriale'], - request.form['ip'], request.form['hostname'] if request.form['hostname'] else None, request.form['so'], + request.form['ip'], request.form['hostname'] if request.form['hostname'] else None, + request.form['so'], int(request.form['ordine']) if request.form['ordine'] else None) db.session.add(nuovodisp) db.session.commit() @@ -698,7 +699,8 @@ def page_disp_clone(did): 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['rete'], request.form['seriale'], - request.form['ip'], request.form['hostname'] if request.form['hostname'] else None, request.form['so'], + request.form['ip'], request.form['hostname'] if request.form['hostname'] else None, + request.form['so'], int(request.form['ordine']) if request.form['ordine'] else None) db.session.add(nuovodisp) db.session.commit()