Skip to content

Commit

Permalink
fix: correct order of arguments for where filter #266
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Jan 14, 2022
1 parent dcc332e commit 1e38eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datagateway_api/src/search_api/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_with_pid(entity_name, pid, filters):
log.info("Getting %s from ID %s", entity_name, pid)
log.debug("Entity Name: %s, Filters: %s", entity_name, filters)

filters.append(SearchAPIWhereFilter("pid", "eq", pid))
filters.append(SearchAPIWhereFilter("pid", pid, "eq"))

query = SearchAPIQuery(entity_name)

Expand Down

0 comments on commit 1e38eae

Please sign in to comment.