From 3a445d58cf741f304b40c1a69aa9ac390209b92e Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Thu, 11 Jan 2024 17:09:43 +0000 Subject: [PATCH] Change group to groups --- app/records/routes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/records/routes.py b/app/records/routes.py index 873ae09..2b3f1d7 100644 --- a/app/records/routes.py +++ b/app/records/routes.py @@ -9,14 +9,14 @@ async def index( q: str = "", page: int | None = 1, - group: str | None = None, + groups: str | None = None, highlight: bool | None = False, ) -> RecordSearchResults: rosetta_api = RosettaRecords() rosetta_api.add_query(q) - if group: + if groups: # group:(tna,digitised,nonTna,creator,archive) - rosetta_api.add_parameter("filter", f"group:({group})") + rosetta_api.add_parameter("filter", f"group:({groups})") results = rosetta_api.get_results(page, highlight) return results