Skip to content

Commit

Permalink
Fixed int bug in api.
Browse files Browse the repository at this point in the history
  • Loading branch information
keithjjones committed Sep 19, 2016
1 parent b30aaa7 commit 7ac698a
Showing 1 changed file with 2 additions and 2 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

0 comments on commit 7ac698a

Please sign in to comment.