Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gowdavidwan2003 authored May 14, 2024
1 parent b4c046b commit 4aeb2df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def get_questions():
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 RANDOM()
LIMIT 10; -- Fetching only 10 questions
"""
cursor.execute(query, (subject_id, level))
Expand Down

0 comments on commit 4aeb2df

Please sign in to comment.