We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a5845 commit d695d97Copy full SHA for d695d97
vulnerabilities/api_v2.py
@@ -198,6 +198,9 @@ def get_affected_by_vulnerabilities(self, obj):
198
return [vuln.vulnerability_id for vuln in obj.affected_by_vulnerabilities.all()]
199
200
def get_fixing_vulnerabilities(self, obj):
201
+ # Ghost package should not fix any vulnerability.
202
+ if obj.is_ghost:
203
+ return []
204
return [vuln.vulnerability_id for vuln in obj.fixing_vulnerabilities.all()]
205
206
0 commit comments