Skip to content

Commit

Permalink
Update vulnerabilities/views.py
Browse files Browse the repository at this point in the history
Co-authored-by: Philippe Ombredanne <pombredanne@gmail.com>
  • Loading branch information
Hritik14 and pombredanne authored Jan 25, 2022
1 parent ce87783 commit d01ebc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vulnerabilities/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def request_to_queryset(request):

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

0 comments on commit d01ebc7

Please sign in to comment.