From 1847206ba1d7ea85f272bc64a2955fcdadf19ac8 Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Fri, 19 Jan 2024 12:41:20 +0100 Subject: views: Fix unable to aquire server from ips Fix get_server_from_clients() not working when selecting empty computer folders in sidebar. Previously, parse_elements was wrongly parsing folders. That produced a erronous list of ips and when fed to get_server_from_clients() it would fail. --- ogcp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ogcp') diff --git a/ogcp/views.py b/ogcp/views.py index f560fa1..cb19c4b 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -98,7 +98,7 @@ def validate_elements(elements, min_len=1, max_len=float('inf')): def parse_elements(checkboxes_dict): unwanted_elements = ['csrf_token', 'scope-server', 'scope-center', - 'scope-room', 'image-server', 'repos-server'] + 'scope-room', 'image-server', 'repos-server', 'folder'] elements = set() for key, elements_list in checkboxes_dict.items(): if key not in unwanted_elements: -- cgit v1.2.3-18-g5258