optimized network calls

This commit is contained in:
janis
2022-11-01 17:28:47 +01:00
parent 27caf79371
commit c1c677f5ea
10 changed files with 83 additions and 36 deletions

View File

@@ -63,6 +63,13 @@ class Com:
self.x = requests.get(f"{url}/isrunning")
except Exception:
return False
return self.x.text
def getuiupdate(self, url):
try:
self.x = requests.get(f"{url}/uiupdate")
except Exception:
return False
if self.x.text == "True":
return True
else: