From b4c046b0391950c8e7b260b2ed729f8b9d7890e2 Mon Sep 17 00:00:00 2001 From: Vidwan Gowda H M <107876507+gowdavidwan2003@users.noreply.github.com> Date: Tue, 14 May 2024 23:38:08 +0530 Subject: [PATCH] Update app.py --- backend/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))