Merge pull request #730 from kay0u/fix_version

[fix] current version in app_info
This commit is contained in:
Alexandre Aubin 2019-06-04 00:13:21 +02:00 committed by GitHub
commit b3b6ee54a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,6 +362,11 @@ def app_info(app, show_status=False, raw=False):
ret['upgradable'] = upgradable
ret['change_url'] = os.path.exists(os.path.join(app_setting_path, "scripts", "change_url"))
with open(os.path.join(APPS_SETTING_PATH, app, 'manifest.json')) as json_manifest:
manifest = json.load(json_manifest)
ret['version'] = manifest.get('version', '-')
return ret