summaryrefslogtreecommitdiff
path: root/pgweb/docs/struct.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-01-17 19:47:43 +0000
committerMagnus Hagander2019-01-17 19:47:43 +0000
commit0883ac6423857246cca412c159af7914ad06e631 (patch)
treed6bdc96b342301b97858f409873f66b030c76490 /pgweb/docs/struct.py
parent87237f6536a1e6df112ca34818cf8459cb04fc68 (diff)
Fix whitespace and indentation, per pep8
Diffstat (limited to 'pgweb/docs/struct.py')
-rw-r--r--pgweb/docs/struct.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pgweb/docs/struct.py b/pgweb/docs/struct.py
index 942d0573..78c3f933 100644
--- a/pgweb/docs/struct.py
+++ b/pgweb/docs/struct.py
@@ -1,6 +1,7 @@
from django.db import connection
from pgweb.core.models import Version
+
def get_struct():
currentversion = Version.objects.get(current=True)
@@ -31,7 +32,7 @@ def get_struct():
version = int(version)
yield ('docs/%s/%s' % (version, filename),
- testing and 0.1 or docprio, # beta/rc versions always get 0.1 in prio
+ testing and 0.1 or docprio, # beta/rc versions always get 0.1 in prio
loaded)
# Also yield the current version urls, with the highest
@@ -40,6 +41,7 @@ def get_struct():
yield ('docs/current/%s' % filename,
1.0, loaded)
+
# For our internal sitemap (used only by our own search engine),
# include the devel version of the docs (and only those, since the
# other versions are already included)