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 ee0e939 commit b4c046b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b4c046b

Please sign in to comment.