mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-03 15:38:59 +00:00
10 lines
364 B
Python
10 lines
364 B
Python
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)
|