fix: reopen clears restored_at, wire settings, docs, startup warning

This commit is contained in:
Atharv1705
2026-11-12 17:34:04 +05:30
parent 5027c0766e
commit e2a6fa601e
17 changed files with 292 additions and 36 deletions
+7 -1
View File
@@ -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)),
}