Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Change group to groups
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 11, 2024
1 parent 7688b4c commit 3a445d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/records/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3a445d5

Please sign in to comment.