Update modules/database.py
Browse files- modules/database.py +2 -2
modules/database.py
CHANGED
|
@@ -265,8 +265,8 @@ def get_student_data(username):
|
|
| 265 |
|
| 266 |
for entry in cursor:
|
| 267 |
formatted_entry = {
|
| 268 |
-
"timestamp": entry
|
| 269 |
-
"text": entry
|
| 270 |
"analysis_type": entry.get("analysis_type", "morphosyntax")
|
| 271 |
}
|
| 272 |
|
|
|
|
| 265 |
|
| 266 |
for entry in cursor:
|
| 267 |
formatted_entry = {
|
| 268 |
+
"timestamp": entry.get("timestamp", datetime.utcnow()),
|
| 269 |
+
"text": entry.get("text", ""),
|
| 270 |
"analysis_type": entry.get("analysis_type", "morphosyntax")
|
| 271 |
}
|
| 272 |
|