diff --git a/backend/secuscan/executor.py b/backend/secuscan/executor.py index 01a68020..3c3e45cb 100644 --- a/backend/secuscan/executor.py +++ b/backend/secuscan/executor.py @@ -643,8 +643,8 @@ async def cancel_task(self, task_id: str) -> bool: ) await self._broadcast(task_id, "status", TaskStatus.CANCELLED.value) - await self._invalidate_cached_views() + await self._invalidate_cached_views() await db.log_audit( "task_cancelled", "Task cancelled by user", @@ -659,7 +659,7 @@ async def get_task_status(self, task_id: str) -> Optional[Dict]: task_row = await db.fetchone( """ SELECT id, plugin_id, tool_name, target, status, scan_phase, created_at, started_at, completed_at, - duration_seconds, exit_code, error_message, preset, inputs_json + duration_seconds, exit_code, error_message, preset, inputs_json FROM tasks WHERE id = ? """, (task_id,) @@ -828,7 +828,7 @@ async def _upsert_findings_and_report_from_scanner(self, db, task_id: str, scann exploitability, confidence, asset_exposure, risk_score, risk_factors_json ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, - ?, ?, ?, ?, ?) + ?, ?, ?, ?, ?) """, ( finding_id,