fix: Clear cache after updating defaults manually
This commit is contained in:
parent
32ad754493
commit
823aec2d87
1 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
import json
|
||||
import os
|
||||
|
||||
from frappe.defaults import _clear_cache
|
||||
import frappe
|
||||
|
||||
|
||||
|
|
@ -111,8 +111,8 @@ 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.get_single("Installed Applications").update_versions()
|
||||
frappe.db.set_value("DefaultValue", {"defkey": "installed_apps"}, "defvalue", json.dumps(installed_apps))
|
||||
_clear_cache("__global")
|
||||
frappe.db.commit()
|
||||
if frappe.flags.in_install:
|
||||
post_install()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue