fix: reopen clears restored_at, wire settings, docs, startup warning
This commit is contained in:
@@ -36,7 +36,13 @@ APPROVER_ROLES = {Role.management.value, Role.system_admin.value, Role.coordinat
|
||||
|
||||
def _cal_lead_settings(db: Session) -> dict[str, int]:
|
||||
return {
|
||||
"lead": int(get_setting_value(db, "calibration_lead_days", 15)),
|
||||
"lead": int(
|
||||
get_setting_value(
|
||||
db,
|
||||
"calibration_due_window_days",
|
||||
get_setting_value(db, "calibration_lead_days", 15),
|
||||
)
|
||||
),
|
||||
"red": int(get_setting_value(db, "red_threshold_days", 7)),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user