perf: Use system settings for fetching expiry

It's just copy of the same data. IMO sys settings is always the "true"
source of truth.
This commit is contained in:
Ankush Menat 2024-12-26 11:27:27 +05:30
parent 2af6eedec9
commit 03036bfc91

View file

@ -451,7 +451,7 @@ def get_expired_threshold():
def get_expiry_period():
exp_sec = frappe.defaults.get_global_default("session_expiry") or "240:00:00"
exp_sec = frappe.get_system_settings("session_expiry") or "240:00:00"
# incase seconds is missing
if len(exp_sec.split(":")) == 2: