diff --git a/backend/app.py b/backend/app.py index 123546d..0845d56 100644 --- a/backend/app.py +++ b/backend/app.py @@ -101,7 +101,7 @@ def get_questions(): query = """ SELECT question_id, question, option_a, option_b, option_c, option_d, correct_option FROM questions - WHERE subject_id = %s AND level = %s ORDER BY RAND() + WHERE subject_id = %s AND level = %s LIMIT 10; -- Fetching only 10 questions """ cursor.execute(query, (subject_id, level))