Skip to content

Commit

Permalink
Merge pull request brad-sp#289 from keithjjones/fix-api
Browse files Browse the repository at this point in the history
Fixed remote submissions
  • Loading branch information
spender-sandbox authored Sep 19, 2016
2 parents 9a2ca79 + 7ac698a commit 16c7280
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ def tasks_create_file():
shrike_sid = request.forms.get("shrike_sid", None)
shrike_refer = request.forms.get("shrike_refer", None)

if int(memory):
if memory:
memory = True
enforce_timeout = request.forms.get("enforce_timeout", False)
if int(enforce_timeout):
if enforce_timeout:
enforce_timeout = True

temp_file_path = store_temp_file(data.file.read(), data.filename)
Expand Down
3 changes: 2 additions & 1 deletion utils/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ def main():
return False

json = response.json()
task_ids = [ json["task_id"] ]
task_ids = [ json.get("task_ids",None) ]

else:
if args.unique:
sha256 = File(file_path).get_sha256()
Expand Down

0 comments on commit 16c7280

Please sign in to comment.