summaryrefslogtreecommitdiff
path: root/pgweb/security/struct.py
blob: c3f325df399076dff928d904ff6ce02c884f1e5e (plain)
1
2
3
4
5
6
7
8
9
from datetime import date, timedelta
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).exclude(cve='').order_by('-cvenumber'):
        yield ('support/security/CVE-{}'.format(s.cve), None)