summaryrefslogtreecommitdiff
path: root/pgweb/docs/struct.py
diff options
context:
space:
mode:
authorMagnus Hagander2017-05-28 15:41:03 +0000
committerMagnus Hagander2017-05-28 15:41:03 +0000
commit1e9c3fb0fb2132d04c7a4b06ae3febef8c035320 (patch)
tree39f1c45872bcfc652e4e6e8952ffe57122b8eb11 /pgweb/docs/struct.py
parentef83f8c8419cbd7713d50eb726b524568f6a6bfc (diff)
Generate sitemap with 10 instead of 10.0 for docs search
Diffstat (limited to 'pgweb/docs/struct.py')
-rw-r--r--pgweb/docs/struct.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pgweb/docs/struct.py b/pgweb/docs/struct.py
index d0325604..9848812d 100644
--- a/pgweb/docs/struct.py
+++ b/pgweb/docs/struct.py
@@ -27,6 +27,9 @@ def get_struct():
docprio -= 0.1
lastversion = version
+ if version >= 10:
+ version = int(version)
+
yield ('docs/%s/static/%s' % (version, filename),
testing and 0.1 or docprio, # beta/rc versions always get 0.1 in prio
loaded)