fix: reopen clears restored_at, wire settings, docs, startup warning
This commit is contained in:
@@ -36,7 +36,13 @@ def _contract_lead_settings(db: Session) -> tuple[int, int]:
|
||||
get_setting_value(db, "contract_expiry_alert_days", 30),
|
||||
)
|
||||
)
|
||||
red = int(get_setting_value(db, "red_threshold_days", 7))
|
||||
red = int(
|
||||
get_setting_value(
|
||||
db,
|
||||
"contract_critical_alert_days",
|
||||
get_setting_value(db, "red_threshold_days", 7),
|
||||
)
|
||||
)
|
||||
return lead, red
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user