Merge pull request #6060 from saurabh6790/get_app_version_and_branch_info
[enhance] in get_app_info return application branch and branch version if exists
This commit is contained in:
commit
d2ce42fce4
1 changed files with 5 additions and 2 deletions
|
|
@ -503,10 +503,13 @@ def get_name_from_email_string(email_string, email_id, name):
|
|||
|
||||
def get_installed_apps_info():
|
||||
out = []
|
||||
for app in frappe.get_installed_apps():
|
||||
from frappe.utils.change_log import get_versions
|
||||
|
||||
for app, version_details in iteritems(get_versions()):
|
||||
out.append({
|
||||
'app_name': app,
|
||||
'version': getattr(frappe.get_module(app), '__version__', 'Unknown')
|
||||
'version': version_details.get('branch_version') or version_details.get('version'),
|
||||
'branch': version_details.get('branch')
|
||||
})
|
||||
|
||||
return out
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue