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
@@ -54,7 +54,13 @@ def get_dashboard_summary(
dept_scope_name = dept_obj.name if dept_obj else None
# Settings for dynamic calculations
cal_lead = int(get_setting_value(db, "calibration_lead_days", 15))
cal_lead = int(
get_setting_value(
db,
"calibration_due_window_days",
get_setting_value(db, "calibration_lead_days", 15),
)
)
amc_lead = int(
get_setting_value(
db,