From b9b5badec6618800c24e7b2012476313cc649641 Mon Sep 17 00:00:00 2001 From: Correl Date: Thu, 15 Jul 2021 22:41:01 -0400 Subject: [PATCH] Fix handling of in_collection values --- tutor/server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tutor/server.py b/tutor/server.py index 6400cec..e339bdb 100644 --- a/tutor/server.py +++ b/tutor/server.py @@ -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")