Fix update notification service.

fix #721
This commit is contained in:
Antoine Nguyen
2015-04-30 16:32:57 +02:00
parent 7841d8454b
commit da729bfe68
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ def check_for_updates(request):
}] + extensions
update_avail = False
for extension in extensions:
if "update" in extension:
if extension.get("update"):
update_avail = True
break
return update_avail, extensions
+3 -1
View File
@@ -55,7 +55,9 @@ class ModoAPIClient(object):
from versionfield.version import Version
url = os.path.join(self._api_url, "current_version/")
params = {"client_version": self.local_core_version, "site": site}
params = {
"client_version": self.local_core_version, "client_site": site
}
resp = self.__send_request(url, params)
if resp is None:
return None