Skip to content

Commit

Permalink
use kwarg (required for session)
Browse files Browse the repository at this point in the history
 * requests.api.put has data as a kwarg with default value None so
   this was why requests.get(url, data) worked
  • Loading branch information
JunAishima committed Oct 3, 2024
1 parent 06311ea commit 9152523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amostra/client/amutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _get(url, params):
Results of the query
"""
r = session.get(url, ujson.dumps(params))
r = session.get(url, params=ujson.dumps(params))
r.raise_for_status()
return ujson.loads(r.text)

Expand Down

0 comments on commit 9152523

Please sign in to comment.