summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpn_common/main.py
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-05-07 11:51:34 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-05-29 14:36:10 +0200
commit3ecfc012e2db8b464596faf2c3bd4db1cab8697b (patch)
treeb234ee9aa6729e56232786fee83f92cc5bbb63e3 /wrappers/python/eduvpn_common/main.py
parentb1033a6a39fe21fec99be5318ba3536af148a79b (diff)
Discovery: Implement search and do not return keywords
This patch implements search by adding a second argument to DiscoOrganizations and DiscoServers. A search string of = "" returns everything. This also makes the subset that is returned to the client even fewer, no keywords.
Diffstat (limited to 'wrappers/python/eduvpn_common/main.py')
-rw-r--r--wrappers/python/eduvpn_common/main.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py
index 4582c8d..cb81e53 100644
--- a/wrappers/python/eduvpn_common/main.py
+++ b/wrappers/python/eduvpn_common/main.py
@@ -178,13 +178,13 @@ class EduVPN(object):
forwardError(server_err)
return server
- def get_disco_organizations(self) -> str:
- orgs, _ = self.go_cookie_function(self.lib.DiscoOrganizations)
+ def get_disco_organizations(self, search="") -> str:
+ orgs, _ = self.go_cookie_function(self.lib.DiscoOrganizations, search)
# TODO: Log error
return orgs
- def get_disco_servers(self) -> str:
- servers, _ = self.go_cookie_function(self.lib.DiscoServers)
+ def get_disco_servers(self, search="") -> str:
+ servers, _ = self.go_cookie_function(self.lib.DiscoServers, search)
# TODO: Log error
return servers