docs: get_system_settings

* IMO this should be renamed to something like `get_from_system_settings`
This commit is contained in:
Hussain Nagaria 2023-12-16 22:18:31 +05:30
parent 51a03c52f1
commit 1a2d8fe78a

View file

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