refactor: build file and patch

This commit is contained in:
Jannat Patel
2021-10-13 13:51:41 +05:30
parent d07dbcc50a
commit c95d957d2c
3 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
from __future__ import unicode_literals
import frappe
from frappe.installer import add_to_installed_apps, remove_from_installed_apps
def execute():
if "community" in frappe.db.get_global("installed_apps"):
remove_from_installed_apps("community")
add_to_installed_apps("school")