Fixes #236: Saved filter doesn't reload show cables (#475)

* fix restore saved filter options

* fix restore saved filter group options

* fix htmx export to xml
This commit is contained in:
Mario
2024-03-30 17:29:26 +01:00
committed by GitHub
parent 32003e59f9
commit c00b8c2cfe
5 changed files with 79 additions and 20 deletions
+5 -1
View File
@@ -107,6 +107,10 @@ def get_model_role(model: Type[Model]) -> Role:
)
def get_query_settings(request):
filter_id = ''
if "filter_id" in request.GET:
filter_id = request.GET["filter_id"]
save_coords = False
if "save_coords" in request.GET:
if request.GET["save_coords"] == "on":
@@ -174,7 +178,7 @@ def get_query_settings(request):
if request.GET["show_neighbors"] == "on" :
show_neighbors = True
return 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, show_neighbors
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, show_neighbors
class LinePattern():
wireless = [2, 10, 2, 10]