Skip to content

Commit

Permalink
quick fix for vitamins
Browse files Browse the repository at this point in the history
  • Loading branch information
KartikKapur committed Feb 3, 2019
1 parent 4bbe7a4 commit 320c2db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,8 @@ def answer_vitamin(course_ok_id, lecture_url_name, video_index, vitamin_index,
time = datetime.now()

sql_client.answer_vitamin(user_ok_id, course_ok_id,
vitamin['answer'], video_index,
vitamin_index, lecture_url_name)
vitamin['answer'], lecture_url_name, video_index,
vitamin_index)
submission = request.get_json().get('answer')
if submission == vitamin['answer']:
return jsonify(success=True, message="Correct!"), 200
Expand Down

0 comments on commit 320c2db

Please sign in to comment.