Aug 19 - Fix New Inspection Internal Server error

This commit is contained in:
2026-08-19 14:51:16 -04:00
parent 88af636912
commit 291d566f17
3 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -9,7 +9,6 @@
the auto/plan MODE. They are placed next to the field they qualify rather
than in a block of their own. #}
{% block content %}
{# ── Sticky values ────────────────────────────────────────────────────────
This form is hand-built (no WTForms), so a re-render after a validation
error would otherwise come back blank and the user would retype everything.
@@ -33,6 +32,8 @@
{% set v_nth_weekday = (posted.get('nth_weekday')|int(-1)) if posted else (schedule.nth_weekday if schedule and schedule.nth_weekday is not none else -1) %}
{% set v_weekdays = (posted.getlist('weekdays')|map('int')|list) if posted else (schedule.weekday_list if schedule else []) %}
{% set v_active = (posted.get('active') is not none) if posted else (schedule.active if schedule else True) %}
{% block content %}
<div class="row justify-content-center">
<div class="col-lg-7">
<div class="card shadow-sm">