Jul 27 - Update code for scheduled tasks

This commit is contained in:
Nguyen Ngo
2026-07-27 12:55:54 -04:00
parent 3ab84ac016
commit 44b577b59f
4 changed files with 26 additions and 2 deletions
+4 -1
View File
@@ -339,7 +339,10 @@ class ScheduledInspectionForm(FlaskForm):
('weekly', 'Weekly'), ('monthly', 'Monthly'),
], validators=[DataRequired()])
next_due_date = DateField('Start / Due Date', validators=[DataRequired()])
notes = TextAreaField('Notes', validators=[Optional(), Length(max=1000)])
# UI label only. The field name, the ScheduledInspection.notes attribute and
# the scheduled_inspections.notes column all stay `notes` — renaming any of
# them would break the API payload key the iPad decodes.
notes = TextAreaField('Instructions', validators=[Optional(), Length(max=1000)])
active = BooleanField('Active', default=True)
# ── Recurrence detail (phase43) ──────────────────────────────────────────