diff options
author | Magnus Hagander | 2012-05-16 17:35:35 +0000 |
---|---|---|
committer | Magnus Hagander | 2012-05-16 17:35:35 +0000 |
commit | 721744087f4396ea5f28a14428fc659b5971bbea (patch) | |
tree | 8ab30bea75df578d43a916093e4295bdd7cbfad8 /pgweb/docs/struct.py | |
parent | 439774d126ee48d04fd2adfe488c63a6d943a2f6 (diff) |
Exclude beta version docs from sitemap.xml
Currently showed up as the highest priority - oops....
Spotted by Stefan
Diffstat (limited to 'pgweb/docs/struct.py')
-rw-r--r-- | pgweb/docs/struct.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pgweb/docs/struct.py b/pgweb/docs/struct.py index 3728b6ae..28271f05 100644 --- a/pgweb/docs/struct.py +++ b/pgweb/docs/struct.py @@ -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. |