chore: remove unused cache=True
(cherry picked from commit 6a47a2ceaf20572e143ab12ff76cfd9c54f509d6)
This commit is contained in:
parent
c7dbcbcd17
commit
eeb0567a73
@ -80,6 +80,6 @@ def update_page_info(bootinfo):
|
|||||||
def bootinfo(bootinfo):
|
def bootinfo(bootinfo):
|
||||||
if bootinfo.get("user") and bootinfo["user"].get("name"):
|
if bootinfo.get("user") and bootinfo["user"].get("name"):
|
||||||
bootinfo["user"]["employee"] = ""
|
bootinfo["user"]["employee"] = ""
|
||||||
employee = frappe.db.get_value("Employee", {"user_id": bootinfo["user"]["name"]}, "name", cache=True)
|
employee = frappe.db.get_value("Employee", {"user_id": bootinfo["user"]["name"]}, "name")
|
||||||
if employee:
|
if employee:
|
||||||
bootinfo["user"]["employee"] = employee
|
bootinfo["user"]["employee"] = employee
|
||||||
|
Loading…
x
Reference in New Issue
Block a user