Merge pull request #146 from davea/use-update-endpoint

Call /update instead of /install on the backend when updating apps
master
Marek Ventur 2018-09-16 16:11:45 +01:00 committed by GitHub
commit 64d719f08d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -74,7 +74,7 @@ def show_update():
if update:
clear()
with WaitingMessage(title=title, text="Please wait...") as message:
installers = store.install(_get_current_apps())
installers = store.update(_get_current_apps())
n = len(installers)
for i, installer in enumerate(installers):
message.text = "%s (%s/%s)" % (installer.path, i + 1, n)

View File

@ -34,6 +34,9 @@ class BadgeStore:
def install(self, apps):
return self._create_installers(self._call("install", {"apps": ",".join(apps)}))
def update(self, apps):
return self._create_installers(self._call("update", {"apps": ",".join(apps)}))
def bootstrap(self):
return self._create_installers(self._call("bootstrap"))