Skip to content

Commit e0868e9

Browse files
committed
Address review comments
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 2fb7da1 commit e0868e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vulnerabilities/pipelines/remove_duplicate_advisories.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def recompute_content_ids(self):
8282
advisory.unique_content_id = compute_content_id(advisory)
8383
advisories.append(advisory)
8484
if len(advisories) % batch_size == 0:
85-
Advisory.objects.bulk_update(advisories, ["unique_content_id"], batch_size=batch_size)
85+
Advisory.objects.bulk_update(
86+
advisories, ["unique_content_id"], batch_size=batch_size
87+
)
8688
advisories = []
8789

8890
if advisories:

0 commit comments

Comments
 (0)