Exclude beta version docs from sitemap.xml

Currently showed up as the highest priority - oops....

Spotted by Stefan
This commit is contained in:
Magnus Hagander
2012-05-16 13:35:35 -04:00
parent 439774d126
commit 721744087f

View File

@ -9,7 +9,7 @@ def get_struct():
# Can't use a model here, because we don't (for some reason) have a
# hard link to the versions table here
curs = connection.cursor()
curs.execute("SELECT d.version, d.file, v.docsloaded FROM docs d INNER JOIN core_version v ON v.tree=d.version WHERE d.version > 0 ORDER BY d.version DESC")
curs.execute("SELECT d.version, d.file, v.docsloaded FROM docs d INNER JOIN core_version v ON v.tree=d.version WHERE d.version > 0 AND v.latestminor >= 0 ORDER BY d.version DESC")
# Start priority is higher than average but lower than what we assign
# to the current version of the docs.