Skip to content
Permalink
Browse files

Optional filter parameter in wsgi search

  • Loading branch information...
uprel committed Sep 12, 2019
1 parent 4741056 commit 9a3d1bd3b0acbd3450a4f5e3c8bc8951822b6dcb
Showing with 9 additions and 1 deletion.
  1. +9 −1 client/wsgi/search.wsgi
@@ -57,7 +57,12 @@ def application(environ, start_response):
#limit
limit = '10'
if "limit" in request.params:
limit = request.params["limit"];
limit = request.params["limit"]

#filter
filter = ''
if "filter" in request.params:
filter = request.params["filter"]

# any searchtable given?
if searchtableLength == 0:
@@ -97,6 +102,9 @@ def application(environ, start_response):
if j < querystringsLength - 1:
sql += " AND "

if filter>'':
sql += " AND filter='"+filter+"'"

sql += " LIMIT " + limit + ")"

#union for next table

0 comments on commit 9a3d1bd

Please sign in to comment.
You can’t perform that action at this time.