Spaces:
Sleeping
Sleeping
Update models.py
Browse files
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(
|
| 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,))
|