Closes #485: Add Ignore Termination Types to "regular" filters (#546)

* add ignore_cable_type filter

* deleted commented command

* corrected saved filter for ignore_cable_type
This commit is contained in:
Mario
2024-08-09 15:09:16 +02:00
committed by GitHub
parent 6f43b959bd
commit 9072faf7cf
4 changed files with 21 additions and 6 deletions
+5 -1
View File
@@ -123,6 +123,10 @@ def get_query_settings(request):
save_coords = True
# Individual options
ignore_cable_type = ()
if "ignore_cable_type" in request.GET:
ignore_cable_type = request.GET.getlist('ignore_cable_type')
show_unconnected = False
if "show_unconnected" in request.GET:
if request.GET["show_unconnected"] == "True":
@@ -192,7 +196,7 @@ def get_query_settings(request):
if request.GET["straight_cables"] == "True":
straight_cables = True
return filter_id, save_coords, show_unconnected, show_power, show_circuit, show_logical_connections, show_single_cable_logical_conns, show_cables, show_wireless, group_sites, group_locations, group_racks, group_virtualchassis, group, show_neighbors, straight_cables
return filter_id, ignore_cable_type, save_coords, show_unconnected, show_power, show_circuit, show_logical_connections, show_single_cable_logical_conns, show_cables, show_wireless, group_sites, group_locations, group_racks, group_virtualchassis, group, show_neighbors, straight_cables
class LinePattern():
wireless = [2, 10, 2, 10]