fix: set brackets - walrus doesnt get priority
This commit is contained in:
parent
c216cd1500
commit
d947f9c37a
1 changed files with 1 additions and 1 deletions
|
|
@ -1179,7 +1179,7 @@ def get_doc(*args, **kwargs) -> "Document":
|
|||
doc = frappe.model.document.get_doc(*args, **kwargs)
|
||||
|
||||
# Replace cache if stale one exists
|
||||
if key := can_cache_doc(args) and cache().hexists("document_cache", key):
|
||||
if (key := can_cache_doc(args)) and cache().hexists("document_cache", key):
|
||||
_set_document_in_cache(key, doc)
|
||||
|
||||
return doc
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue