04/27 Updated fix Inspection start issue 2
This commit is contained in:
@@ -256,11 +256,11 @@ def start():
|
|||||||
inspection = Inspection(
|
inspection = Inspection(
|
||||||
template_id = template.id,
|
template_id = template.id,
|
||||||
facility_id = form.facility_id.data,
|
facility_id = form.facility_id.data,
|
||||||
area_id = form.area_id.data or None,
|
area_id = None,
|
||||||
inspector_id = current_user.id,
|
inspector_id = current_user.id,
|
||||||
inspection_date = now_eastern(),
|
inspection_date = now_eastern(),
|
||||||
status = 'in_progress',
|
status = 'in_progress',
|
||||||
notes = form.notes.data or None,
|
notes = None,
|
||||||
parent_inspection_id = parent_id,
|
parent_inspection_id = parent_id,
|
||||||
)
|
)
|
||||||
db.session.add(inspection)
|
db.session.add(inspection)
|
||||||
|
|||||||
Reference in New Issue
Block a user