Tweaks for uninstalling.

This commit is contained in:
Ben Nilsen 2026-01-30 16:31:18 -05:00
parent 541e6c5ed7
commit f97d48aaed

View File

@ -6,7 +6,7 @@ import frappe
from .utils import create_module
import holidays
from datetime import date, timedelta
import custom_fields
from . import custom_fields
def after_install():
create_module()
@ -94,7 +94,7 @@ def remove_custom_fields(custom_fields):
if frappe.db.exists("Custom Field", name):
frappe.delete_doc("Custom Field", name)
frappe.db.commit()
print("Deleted {name}")
print(f"Deleted {name}")
print("Deleted custom fields from database")