Skip to content

Commit a514af5

Browse files
committed
Do not report ghost package as latest/next non-vulnerable version
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent a391b44 commit a514af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vulnerabilities/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def only_vulnerable(self):
632632
return self._vulnerable(True)
633633

634634
def only_non_vulnerable(self):
635-
return self._vulnerable(False)
635+
return self._vulnerable(False).filter(is_ghost=False)
636636

637637
def _vulnerable(self, vulnerable=True):
638638
"""

0 commit comments

Comments
 (0)