Skip to content

Commit

Permalink
This fixes the problem with limit when it is not a number
Browse files Browse the repository at this point in the history
  • Loading branch information
antolinos committed May 19, 2022
1 parent bb2e158 commit 562e458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datagateway_api/src/search_api/query_filter_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_query_filter(request_filter, entity_name=None, related_entity_name=None)
)
elif filter_name == "limit":
log.info("limit JSON object found")
query_filters.append(SearchAPILimitFilter(filter_input))
query_filters.append(SearchAPILimitFilter(int(filter_input)))
elif filter_name == "skip":
log.info("skip JSON object found")
query_filters.append(SearchAPISkipFilter(filter_input))
Expand Down

0 comments on commit 562e458

Please sign in to comment.