Skip to content

Commit d01ebc7

Browse files
Update vulnerabilities/views.py
Co-authored-by: Philippe Ombredanne <pombredanne@gmail.com>
1 parent ce87783 commit d01ebc7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vulnerabilities/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ def request_to_queryset(request):
7373

7474
return list(
7575
models.Package.objects.all()
76+
# FIXME: This filter is wrong and ignoring most of the fields needed for a
77+
# proper package lookup: type/namespace/name@version?qualifiers and so on
7678
.filter(name__icontains=package_name, type__icontains=package_type)
7779
.annotate(
7880
vulnerability_count=Count(

0 commit comments

Comments
 (0)