From 7ecb575ddf4944b541d350fd05f6764a98ad8d64 Mon Sep 17 00:00:00 2001 From: NguyenND Date: Mon, 27 Apr 2026 14:18:50 -0400 Subject: [PATCH] 04/27 Fixed start inspection error --- app/routes/inspections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/inspections.py b/app/routes/inspections.py index 513a89d..4c55b30 100644 --- a/app/routes/inspections.py +++ b/app/routes/inspections.py @@ -248,8 +248,8 @@ def start(): if form.validate_on_submit(): template = db.session.get(InspectionTemplate, form.template_id.data) - if template is None: - abort(404) + if template is None: + abort(404) if not template.get_form_schema(): flash('This template has no form fields yet. Please build the form in the template editor first.', 'warning')