Skip to content

Commit

Permalink
MAINT: Use post for script get, fixes biocore#117
Browse files Browse the repository at this point in the history
  • Loading branch information
wasade committed Dec 16, 2022
1 parent edd8b2b commit 11a3ebe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions redbiom/_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ def make_script_exec(config):
config = redbiom.get_config()

def f(sha, *args):
payload = [config['hostname'], 'EVALSHA', sha]
payload = [sha]
payload.extend([str(a) for a in args])
url = '/'.join(payload)
return json.loads(_parse_validate_request(s.get(url), 'EVALSHA'))
payload = '/'.join(payload)
data = _format_request(None, 'EVALSHA', payload)
req = s.post(config['hostname'], data=data)
return json.loads(req.json()['EVALSHA'])

return f

Expand Down

0 comments on commit 11a3ebe

Please sign in to comment.