mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 16:58:12 +00:00
Manually add servers (#9)
* Add ability to manually add servers to client * Misc client cleanup * Add availability check before adding server to client UI
This commit is contained in:
@@ -52,8 +52,8 @@ class RenderServerProxy:
|
||||
def request(self, payload, timeout=5):
|
||||
return requests.get(f'http://{self.hostname}:{self.port}/api/{payload}', timeout=timeout)
|
||||
|
||||
def get_jobs(self, timeout=5):
|
||||
url = f'jobs?token={self.__jobs_cache_token}' if self.__jobs_cache_token else 'jobs'
|
||||
def get_jobs(self, timeout=5, ignore_token=False):
|
||||
url = f'jobs?token={self.__jobs_cache_token}' if self.__jobs_cache_token and not ignore_token else 'jobs'
|
||||
status_result = self.request_data(url, timeout=timeout)
|
||||
all_jobs = None
|
||||
if status_result is not None:
|
||||
|
||||
Reference in New Issue
Block a user