Skip to content

Commit

Permalink
16714 args type fix (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
vysakh-menon-aot authored Aug 17, 2023
1 parent 6d4a0f8 commit 0175587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/namex/resources/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ def get():
example: query=NR3742302 or query=abcd
"""
data = []
start = request.args.get('start', 0)
rows = request.args.get('rows', 10)
start = request.args.get('start', 0, type=int)
rows = request.args.get('rows', 10, type=int)
query = request.args.get('query', '')
if not query:
return jsonify(data), 200
Expand Down

0 comments on commit 0175587

Please sign in to comment.