diff options
author | Javier Hernandez <jhernandez@soleta.eu> | 2024-01-19 12:41:20 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-01-19 12:58:17 +0100 |
commit | 1847206ba1d7ea85f272bc64a2955fcdadf19ac8 (patch) | |
tree | e62a59e85a338bb2631d54d2abe9abfa59ff9e54 /ogcp/views.py | |
parent | 3685308ec9dfcecacfad4e6a71f15cd9a196d8d2 (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/views.py')
-rw-r--r-- | ogcp/views.py | 2 |
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: |