From 1e9c3fb0fb2132d04c7a4b06ae3febef8c035320 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sun, 28 May 2017 11:41:03 -0400 Subject: Generate sitemap with 10 instead of 10.0 for docs search --- pgweb/docs/struct.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pgweb/docs/struct.py') 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) -- cgit v1.2.3