mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Suppression de vérifications inutiles.
This commit is contained in:
parent
e3bd4e7ce3
commit
1c8a3a87c0
1 changed files with 2 additions and 4 deletions
|
@ -445,9 +445,7 @@ def create_ports(request, switch_id):
|
||||||
messages.error(request, "Ce switch ne peut avoir autant de ports.")
|
messages.error(request, "Ce switch ne peut avoir autant de ports.")
|
||||||
return redirect("/topologie/switch/" + str(switch.id))
|
return redirect("/topologie/switch/" + str(switch.id))
|
||||||
|
|
||||||
if begin < s_begin:
|
|
||||||
b = range(begin, s_begin)
|
b = range(begin, s_begin)
|
||||||
if end > s_end:
|
|
||||||
e = range(s_end+1, end+1)
|
e = range(s_end+1, end+1)
|
||||||
for i in itertools.chain(b,e):
|
for i in itertools.chain(b,e):
|
||||||
p = Port()
|
p = Port()
|
||||||
|
|
Loading…
Reference in a new issue