Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaCristina16 committed Nov 30, 2018
1 parent 4fee0ce commit 7754774
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flaskapp/views/challenges.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def create_challenge():
flash('The run/s do not exist or are the same', category='error')
status = reply_run_1.status_code
return render_template('create_challenge.html', runs=runs, form=form), status
elif reply_run_2.status_code is not 200:

if reply_run_2.status_code is not 200:
flash('The run/s do not exist or are the same', category='error')
status = reply_run_2.status_code
return render_template('create_challenge.html', runs=runs, form=form), status
Expand Down

0 comments on commit 7754774

Please sign in to comment.