Skip to content

Commit

Permalink
fix: Clear cache after updating defaults manually
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Oct 30, 2020
1 parent 32ad754 commit 823aec2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frappe/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import json
import os

from frappe.defaults import _clear_cache
import frappe


Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 823aec2

Please sign in to comment.