Merge pull request #10664 from adityahase/fix-remove-from-installed-apps

fix: Bypass ORM for removing apps from installed_apps list
This commit is contained in:
mergify[bot] 2020-06-15 07:05:14 +00:00 committed by GitHub
commit 95e5cd97d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,7 +113,7 @@ def remove_from_installed_apps(app_name):
installed_apps = frappe.get_installed_apps()
if app_name in installed_apps:
installed_apps.remove(app_name)
frappe.db.set_global("installed_apps", json.dumps(installed_apps))
frappe.db.set_value("DefaultValue", {"defkey": "installed_apps"}, "defvalue", json.dumps(installed_apps))
frappe.db.commit()
if frappe.flags.in_install:
post_install()