Skip to content

Commit

Permalink
fix: use list for async args
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholsn committed Aug 24, 2014
1 parent 5182fe9 commit 2800728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions niquery/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Validate(Resource):
def get(self):
x = 5
y = 10
res = add.apply_async((x, y))
res = add.apply_async([x, y])
context = {"id": res.task_id, "x": x, "y": y}
result = "add((x){}, (y){})".format(context['x'], context['y'])
goto = "{}".format(context['id'])
Expand All @@ -100,7 +100,7 @@ def get(self, task_id):
class Compute(Resource):
def get(self):
in_file_uri = "http://openfmri.s3.amazonaws.com/ds001/sub001/anatomy/highres001.nii.gz"
res = bet.apply_async(in_file_uri)
res = bet.apply_async([in_file_uri])
result = {"task_id": res.task_id, "task": "Run FSL BET", "in_file_uri": in_file_uri}
return jsonify(result=result)

Expand Down

0 comments on commit 2800728

Please sign in to comment.