From 1b991ce372262a4726e3fc11ff84c49faf95a95b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 20 Sep 2017 12:40:29 +0200 Subject: [PATCH] Tiny improvement to the network add page --- server.py | 2 +- templates/net/show.htm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 69d5ee3..ce4675d 100644 --- a/server.py +++ b/server.py @@ -740,7 +740,7 @@ def page_net_add(): except ValueError: return render_template("error.htm", error="Il campo Subnet deve contenere il numero di bit della subnet. " "(8, 16, 24...)") - nuovonet = Rete(nome=request.form["nome"], network_ip=request.form["network_ip"], subnet=request.form["subnet"], + nuovonet = Rete(nome=request.form["nome"], network_ip=request.form["network_ip"], subnet=request.form["subnet"].lstrip("/"), primary_dns=request.form["primary_dns"], secondary_dns=request.form["secondary_dns"]) db.session.add(nuovonet) db.session.commit() diff --git a/templates/net/show.htm b/templates/net/show.htm index fb96599..3612c97 100644 --- a/templates/net/show.htm +++ b/templates/net/show.htm @@ -13,7 +13,7 @@
- +