From 8bc756db16faf7dccd44f2fd86a7fbb97a2f35a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Chirico=20Indreb=C3=B8?= Date: Wed, 15 Jan 2025 12:54:24 +0100 Subject: [PATCH] Fix inverted ID comparison --- src/isar/state_machine/states/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/isar/state_machine/states/monitor.py b/src/isar/state_machine/states/monitor.py index ba433e13..98b7b2a8 100644 --- a/src/isar/state_machine/states/monitor.py +++ b/src/isar/state_machine/states/monitor.py @@ -143,7 +143,7 @@ def _queue_inspections_for_upload( inspection: Inspection = self.state_machine.robot.get_inspection( task=current_task ) - if current_task.inspection_id == inspection.id: + if current_task.inspection_id != inspection.id: self.logger.warning( f"The inspection_id of task ({current_task.inspection_id}) " f"and result ({inspection.id}) is not matching. "