Skip to content

Commit f34e44a

Browse files
committed
Always store summary of vulnerability
Before this change, when a new vulnerability was stored for an advisory that has both a CVE ID and a summary, the summary was not included. Signed-off-by: Haiko Schol <hs@haikoschol.com>
1 parent 8788014 commit f34e44a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vulnerabilities/import_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _get_or_create_vulnerability(advisory: Advisory) -> Tuple[models.Vulnerabili
152152

153153
vuln, created = models.Vulnerability.objects.get_or_create(**query_kwargs)
154154

155-
if not created and vuln.summary != advisory.summary:
155+
if vuln.summary != advisory.summary:
156156
vuln.summary = advisory.summary
157157
vuln.save()
158158

0 commit comments

Comments
 (0)