perf: Avoid duplicate queries
This commit is contained in:
parent
a8265bdc30
commit
f963758a1d
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ def get():
|
|||
"default_path": get_default_path() or "",
|
||||
}
|
||||
|
||||
bootinfo["desk_theme"] = frappe.db.get_value("User", frappe.session.user, "desk_theme") or "Light"
|
||||
bootinfo["desk_theme"] = frappe.get_cached_value("User", frappe.session.user, "desk_theme") or "Light"
|
||||
bootinfo["user"]["impersonated_by"] = frappe.session.data.get("impersonated_by")
|
||||
bootinfo["navbar_settings"] = frappe.get_cached_doc("Navbar Settings")
|
||||
bootinfo.has_app_updates = has_app_update_notifications()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue