Fix handling of in_collection values
This commit is contained in:
parent
a08a2998a3
commit
b9b5badec6
1 changed files with 3 additions and 1 deletions
|
@ -65,7 +65,9 @@ class SearchHandler(tornado.web.RequestHandler):
|
|||
search,
|
||||
limit=limit + 1,
|
||||
offset=limit * (page - 1),
|
||||
in_collection=in_collection,
|
||||
in_collection=in_collection in ("yes", "true")
|
||||
if in_collection
|
||||
else None,
|
||||
)
|
||||
has_more = cards and len(cards) > limit
|
||||
self.set_header("Content-Type", "application/json")
|
||||
|
|
Loading…
Reference in a new issue