refactor: use db.get_single_value

This commit is contained in:
Ankush Menat
2024-01-09 21:56:47 +05:30
parent 74ceb6da5e
commit bb18ae82cf
26 changed files with 44 additions and 50 deletions

View File

@@ -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)