Skip to content

Commit

Permalink
Bump package-url version #918
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
  • Loading branch information
TG1999 committed Sep 15, 2022
1 parent 08f9fac commit 3db521f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ MarkupSafe==2.1.1
matplotlib-inline==0.1.3
multidict==6.0.2
mypy-extensions==0.4.3
packageurl-python==0.9.9
packageurl-python==0.10.3
packaging==21.3
paramiko==2.10.3
parso==0.8.3
Expand Down
2 changes: 1 addition & 1 deletion vulnerabilities/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def for_package_url_object(self, purl):
return self.filter(**lookups)

elif isinstance(purl, str):
return self.for_package_url(purl)
return self.for_package_url(purl, encode=False)

else:
return self.none()
Expand Down
2 changes: 1 addition & 1 deletion vulnerabilities/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def get_object(self, queryset=None):

purl = self.kwargs.get(self.slug_url_kwarg)
if purl:
queryset = queryset.for_package_url(purl_str=purl)
queryset = queryset.for_package_url(purl_str=purl, encode=False)
else:
cls = self.__class__.__name__
raise AttributeError(
Expand Down

0 comments on commit 3db521f

Please sign in to comment.