From 73c006a18885e69688623550cb2e5351c9da52a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Sun, 2 Sep 2018 10:04:11 +0200 Subject: [PATCH] Fix Search API --- twitch-cache-api/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/twitch-cache-api/app.py b/twitch-cache-api/app.py index 5a5eaf7..003a10a 100644 --- a/twitch-cache-api/app.py +++ b/twitch-cache-api/app.py @@ -153,6 +153,8 @@ filter_parser.add_argument('page_size', type=int) search_parser = flask_restful.reqparse.RequestParser() search_parser.add_argument('commenter', type=str) search_parser.add_argument('term', type=str) +search_parser.add_argument('older_than', type=flask_restful.inputs.datetime_from_iso8601) +search_parser.add_argument('newer_than', type=flask_restful.inputs.datetime_from_iso8601) search_parser.add_argument('sort_by', type=str) search_parser.add_argument('sort_order', type=str) search_parser.add_argument('page_number', type=int)