From a514af55533a66bac854809db72966e36b6ea4b8 Mon Sep 17 00:00:00 2001 From: Keshav Priyadarshi Date: Fri, 22 Nov 2024 17:09:11 +0530 Subject: [PATCH] Do not report ghost package as latest/next non-vulnerable version Signed-off-by: Keshav Priyadarshi --- vulnerabilities/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulnerabilities/models.py b/vulnerabilities/models.py index d6fae2408..9cafe6d15 100644 --- a/vulnerabilities/models.py +++ b/vulnerabilities/models.py @@ -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): """