feat: Enhancements in Server Script
This commit is contained in:
parent
0c7c1dcb89
commit
55e2af20c6
1 changed files with 3 additions and 1 deletions
|
|
@ -111,6 +111,7 @@ def get_safe_globals():
|
|||
get_hooks=frappe.get_hooks,
|
||||
sanitize_html=frappe.utils.sanitize_html,
|
||||
log_error=frappe.log_error
|
||||
cache=frappe.cache
|
||||
),
|
||||
FrappeClient=FrappeClient,
|
||||
style=frappe._dict(
|
||||
|
|
@ -141,7 +142,8 @@ def get_safe_globals():
|
|||
get_single_value = frappe.db.get_single_value,
|
||||
get_default = frappe.db.get_default,
|
||||
escape = frappe.db.escape,
|
||||
sql = read_sql
|
||||
sql = read_sql,
|
||||
commit = frappe.db.commit
|
||||
)
|
||||
|
||||
if frappe.response:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue