mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00
Retain documentation version when navigating paginated links.
The old code always raised an exception as the variable being checked was not defined at that point. Now, it checks the variable that one expects to be set.
This commit is contained in:
@ -290,7 +290,7 @@ def search(request):
|
||||
conn.close()
|
||||
totalhits = int(hits[-1][5])
|
||||
try:
|
||||
if quoted_suburl:
|
||||
if suburl:
|
||||
quoted_suburl = urllib.quote_plus(suburl)
|
||||
else:
|
||||
quoted_suburl = ''
|
||||
|
Reference in New Issue
Block a user