From 320c2db45a7b7fb37eafea72f61f440409133e69 Mon Sep 17 00:00:00 2001 From: Kartik Kapur Date: Sat, 2 Feb 2019 23:31:27 -0800 Subject: [PATCH] quick fix for vitamins --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 9748303..05a7113 100644 --- a/app.py +++ b/app.py @@ -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