docs: get_system_settings
* IMO this should be renamed to something like `get_from_system_settings`
This commit is contained in:
parent
51a03c52f1
commit
1a2d8fe78a
1 changed files with 2 additions and 1 deletions
|
|
@ -2321,7 +2321,8 @@ def get_website_settings(key):
|
|||
return local.website_settings.get(key)
|
||||
|
||||
|
||||
def get_system_settings(key):
|
||||
def get_system_settings(key: str):
|
||||
"""Get the value associated with the given `key` from System Settings DocType."""
|
||||
if not hasattr(local, "system_settings"):
|
||||
try:
|
||||
local.system_settings = get_cached_doc("System Settings")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue