Skip to content

Commit

Permalink
fix(DB): Immediately commit new discover results to DB
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandjarisch committed Oct 10, 2023
1 parent 9cc4e91 commit 523c352
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gallia/db/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ async def insert_discovery_result(self, target: str) -> None:
query = "INSERT INTO discovery_result(address, run) VALUES ((SELECT id FROM address WHERE url = ?), ?)"

await self.connection.execute(query, (target, self.discovery_run))
await self.connection.commit()

async def insert_scan_result( # noqa: PLR0913
self,
Expand Down

0 comments on commit 523c352

Please sign in to comment.