Skip to content

Commit b4fefc3

Browse files
committed
Add CHANGELOG and docstring
Signed-off-by: Tushar Goel <[email protected]>
1 parent 1c2f259 commit b4fefc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vulnerabilities/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ def with_vulnerability_counts(self):
219219

220220

221221
def get_purl_query_lookups(purl):
222+
"""
223+
Do not reference all the possible qualifiers and relax the
224+
purl matching to only lookup the type, namespace, name and version fields.
225+
"""
222226
lookup_fields = ["type", "namespace", "name", "version"]
223227
return {
224228
field_name: value

0 commit comments

Comments
 (0)