mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-05 18:34:52 +00:00
Style fixups to pass pep checks
This fixes the style issues introduced in the patches for the new release notes styles. Clearly a broken verification hook somewhere.
This commit is contained in:
@ -71,6 +71,7 @@ def dictlookup(value, key):
|
||||
def tojson(value):
|
||||
return json.dumps(value)
|
||||
|
||||
|
||||
@register.filter()
|
||||
def release_notes_pg_minor_version(minor_version, major_version):
|
||||
"""Formats the minor version number to the appropriate PostgreSQL version.
|
||||
|
@ -176,6 +176,7 @@ def manualarchive(request):
|
||||
'versions': [_VersionPdfWrapper(v) for v in versions],
|
||||
})
|
||||
|
||||
|
||||
def release_notes(request, major_version=None, minor_version=None):
|
||||
"""Contains the main archive of release notes."""
|
||||
# this query gets a list of a unique set of release notes for each version of
|
||||
@ -274,6 +275,7 @@ def release_notes(request, major_version=None, minor_version=None):
|
||||
context = {'release_notes': release_notes}
|
||||
return render_pgweb(request, 'docs', 'docs/release_notes.html', context)
|
||||
|
||||
|
||||
@login_required
|
||||
def commentform(request, itemid, version, filename):
|
||||
if version == 'current':
|
||||
|
@ -1,5 +1,6 @@
|
||||
from django.db import connection
|
||||
|
||||
|
||||
def exec_to_dict(query, params=None):
|
||||
curs = connection.cursor()
|
||||
curs.execute(query, params)
|
||||
|
Reference in New Issue
Block a user