Skip to content

Commit

Permalink
Do not order package queries
Browse files Browse the repository at this point in the history
Reference:#1538
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
  • Loading branch information
pombredanne committed Aug 11, 2024
1 parent 4322471 commit 512dec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulnerabilities/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def get_fixed_by_package_versions(self, purl: PackageURL, fix=True):
if fix:
filter_dict["packagerelatedvulnerability__fix"] = True

return Package.objects.filter(**filter_dict).distinct()
return Package.objects.filter(**filter_dict).distinct().order_by()

def get_or_create_from_purl(self, purl: PackageURL):
"""
Expand Down

0 comments on commit 512dec4

Please sign in to comment.