Skip to content

Commit

Permalink
Do not report ghost package as latest/next non-vulnerable version
Browse files Browse the repository at this point in the history
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
  • Loading branch information
keshav-space committed Nov 22, 2024
1 parent a391b44 commit a514af5
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 @@ -632,7 +632,7 @@ def only_vulnerable(self):
return self._vulnerable(True)

def only_non_vulnerable(self):
return self._vulnerable(False)
return self._vulnerable(False).filter(is_ghost=False)

def _vulnerable(self, vulnerable=True):
"""
Expand Down

0 comments on commit a514af5

Please sign in to comment.