Simply code

Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
Josue-T 2020-04-27 11:09:10 +02:00 committed by GitHub
parent f2791c911f
commit 01d5c91e60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,7 +173,7 @@ def _app_upgradable(app_infos):
else: else:
return "no" return "no"
if not app_infos.get("from_catalog", None): if not app_is_in_catalog:
return "url_required" return "url_required"
if not app_infos["from_catalog"].get("lastUpdate") or not app_infos["from_catalog"].get("git"): if not app_infos["from_catalog"].get("lastUpdate") or not app_infos["from_catalog"].get("git"):
return "url_required" return "url_required"