Fix whitespace and indentation, per pep8

This commit is contained in:
Magnus Hagander
2019-01-17 20:47:43 +01:00
parent 87237f6536
commit 0883ac6423
114 changed files with 890 additions and 548 deletions

View File

@ -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)