1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-29 02:34:20 +00:00

PEP8 stuff

This commit is contained in:
Steffo 2017-09-19 17:13:23 +02:00
parent ff9d3201aa
commit d15e422bd3

View file

@ -546,7 +546,8 @@ def page_disp_add():
int(request.form['inv_ced']) if request.form['inv_ced'] else None, int(request.form['inv_ced']) if request.form['inv_ced'] else None,
int(request.form['inv_ente']) if request.form['inv_ente'] else None, int(request.form['inv_ente']) if request.form['inv_ente'] else None,
request.form['rete'], request.form['seriale'], 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) int(request.form['ordine']) if request.form['ordine'] else None)
db.session.add(nuovodisp) db.session.add(nuovodisp)
db.session.commit() 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_ced']) if request.form['inv_ced'] else None,
int(request.form['inv_ente']) if request.form['inv_ente'] else None, int(request.form['inv_ente']) if request.form['inv_ente'] else None,
request.form['rete'], request.form['seriale'], 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) int(request.form['ordine']) if request.form['ordine'] else None)
db.session.add(nuovodisp) db.session.add(nuovodisp)
db.session.commit() db.session.commit()