summaryrefslogtreecommitdiff
path: root/pgweb/security/struct.py
diff options
context:
space:
mode:
Diffstat (limited to 'pgweb/security/struct.py')
-rw-r--r--pgweb/security/struct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgweb/security/struct.py b/pgweb/security/struct.py
index fd5a713b..c3f325df 100644
--- a/pgweb/security/struct.py
+++ b/pgweb/security/struct.py
@@ -5,5 +5,5 @@ from .models import SecurityPatch
def get_struct():
"""create sitemap entries for each CVE entry and the top level CVE URL"""
yield ('support/security/', None)
- for s in SecurityPatch.objects.filter(public=True).order_by('-cvenumber'):
+ for s in SecurityPatch.objects.filter(public=True).exclude(cve='').order_by('-cvenumber'):
yield ('support/security/CVE-{}'.format(s.cve), None)