fix: Add rollback to safe_exec

This commit is contained in:
Deepesh Garg 2021-10-08 15:52:44 +05:30
parent 34882227fb
commit 4f74f9e4e1

View file

@ -155,7 +155,8 @@ def get_safe_globals():
sum = frappe.db.sum,
escape = frappe.db.escape,
sql = read_sql,
commit = frappe.db.commit
commit = frappe.db.commit,
rollback = frappe.db.rollback
)
out.frappe.cache = cache