Skip to content

Commit ca73977

Browse files
Merge pull request #93 from blacklanternsecurity/status-fix
Scan status fix
2 parents 9bcae00 + e624ae8 commit ca73977

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bbot_server/modules/scans/scans_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ async def handle_event(self, event, asset) -> list[Activity]:
308308
status_changed = await self.update_scan_status(scan_id=scan_id, status_code=scan.status_code)
309309
else:
310310
self.log.warning(f'Scan "{scan.name}" found in database, but event has no duration_seconds')
311+
status_changed = False
311312
# otherwise, assume the scan is starting and create a new run
312313
else:
313314
description = f"Scan [[COLOR]{scan.name}[/COLOR]] started"

0 commit comments

Comments
 (0)