add current version in app_info

This commit is contained in:
Kay0u 2019-05-25 15:13:24 +02:00
parent 9341da10ce
commit bd43e5cde3
No known key found for this signature in database
GPG key ID: ABC3F52576D011D3

View file

@ -362,6 +362,12 @@ 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)
if 'version' in manifest:
ret['version'] = manifest.get('version', '-')
return ret