Spaces:
Sleeping
Sleeping
Update models.py
Browse files
models.py
CHANGED
|
@@ -942,7 +942,7 @@ def get_recent_quizzes_db(user_id, limit=5):
|
|
| 942 |
if not connection:
|
| 943 |
return {"error": "Database connection failed."}
|
| 944 |
|
| 945 |
-
cursor = connection.cursor(
|
| 946 |
|
| 947 |
|
| 948 |
cursor.execute("""
|
|
|
|
| 942 |
if not connection:
|
| 943 |
return {"error": "Database connection failed."}
|
| 944 |
|
| 945 |
+
cursor = connection.cursor()
|
| 946 |
|
| 947 |
|
| 948 |
cursor.execute("""
|