Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <[email protected]>
  • Loading branch information
TG1999 committed Feb 13, 2025
1 parent dcfc5e0 commit 25eea01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vulnerabilities/pipelines/remove_duplicate_advisories.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def recompute_content_ids(self):
advisory.unique_content_id = compute_content_id(advisory)
advisories.append(advisory)
if len(advisories) % batch_size == 0:
Advisory.objects.bulk_update(advisories, ["unique_content_id"], batch_size=batch_size)
Advisory.objects.bulk_update(
advisories, ["unique_content_id"], batch_size=batch_size
)
advisories = []

if advisories:
Expand Down

0 comments on commit 25eea01

Please sign in to comment.