summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2024-01-19 12:41:20 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-19 12:58:17 +0100
commit1847206ba1d7ea85f272bc64a2955fcdadf19ac8 (patch)
treee62a59e85a338bb2631d54d2abe9abfa59ff9e54 /ogcp
parent3685308ec9dfcecacfad4e6a71f15cd9a196d8d2 (diff)
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.
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/views.py2
1 files changed, 1 insertions, 1 deletions
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: