From da788b1bea80815df6cec97a90940c9dd170f839 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Wed, 10 Jan 2024 21:25:08 +0000 Subject: [PATCH] Update routes.py --- app/search/routes.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/search/routes.py b/app/search/routes.py index 25797321..8c1e11b8 100644 --- a/app/search/routes.py +++ b/app/search/routes.py @@ -36,9 +36,8 @@ def catalogue(): page = int(request.args["page"]) if "page" in request.args else 1 records_api = RecordsAPI() records_api.query(query) - records_api.add_parameter("page", page) try: - results = records_api.get_results() + results = records_api.get_results(page) except ConnectionError: return render_template("errors/api.html"), 502 except Exception: @@ -83,9 +82,8 @@ def website(): articles_api.add_parameter("type", ",".join(types)) if "order" in request.args: articles_api.add_parameter("order", request.args["order"]) - articles_api.add_parameter("page", page) try: - results = articles_api.get_results() + results = articles_api.get_results(page) except ConnectionError: return render_template("errors/api.html"), 502 except Exception: