Skip to content

Commit

Permalink
Fix run_id vs vcf_id bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tavinathanson committed Mar 27, 2015
1 parent 57b0cfc commit 9b7fe0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cycledash/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ def list_runs():


@app.route('/tasks/<vcf_id>', methods=['GET', 'DELETE'])
def get_tasks(run_id):
def get_tasks(vcf_id):
if request.method == 'GET':
tasks = cycledash.tasks.get_tasks(run_id)
tasks = cycledash.tasks.get_tasks(vcf_id)
if request_wants_json():
return jsonify({'tasks': tasks})
else:
return render_template('tasks.html', tasks=tasks)
elif request.method == 'DELETE':
cycledash.tasks.delete_tasks(run_id)
cycledash.tasks.delete_tasks(vcf_id)
return success_response()


Expand Down

0 comments on commit 9b7fe0e

Please sign in to comment.