refactor: use db.get_single_value
This commit is contained in:
@@ -9,7 +9,7 @@ from frappe.utils import cint
|
||||
def boot_session(bootinfo):
|
||||
"""boot session - send website info if guest"""
|
||||
|
||||
bootinfo.custom_css = frappe.db.get_value("Style Settings", None, "custom_css") or ""
|
||||
bootinfo.custom_css = frappe.db.get_single_value("Style Settings", "custom_css") or ""
|
||||
|
||||
if frappe.session["user"] != "Guest":
|
||||
update_page_info(bootinfo)
|
||||
|
||||
Reference in New Issue
Block a user