raj-tomar001 commited on
Commit
7e17ed7
·
verified ·
1 Parent(s): 184ce4b

Update models.py

Browse files
Files changed (1) hide show
  1. models.py +1 -1
models.py CHANGED
@@ -1103,7 +1103,7 @@ def fetch_quiz_for_theme_db(user_id, theme):
1103
  if not connection:
1104
  return {"error": "Database connection failed."}
1105
 
1106
- cursor = connection.cursor(dictionary=True)
1107
 
1108
 
1109
  cursor.execute("SELECT theme_quiz_table, theme_bank FROM themes WHERE theme = %s", (theme,))
 
1103
  if not connection:
1104
  return {"error": "Database connection failed."}
1105
 
1106
+ cursor = connection.cursor()
1107
 
1108
 
1109
  cursor.execute("SELECT theme_quiz_table, theme_bank FROM themes WHERE theme = %s", (theme,))