Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -299,7 +299,7 @@ def get_notifications():
|
|
| 299 |
try:
|
| 300 |
notifications = get_all_notifications(user_id)
|
| 301 |
return jsonify({"notifications": notifications}), 200
|
| 302 |
-
|
| 303 |
return jsonify({"error": str(e)}), 500
|
| 304 |
|
| 305 |
@app.route('/notifications/mark_read', methods=['POST'])
|
|
|
|
| 299 |
try:
|
| 300 |
notifications = get_all_notifications(user_id)
|
| 301 |
return jsonify({"notifications": notifications}), 200
|
| 302 |
+
except TypeError as e:
|
| 303 |
return jsonify({"error": str(e)}), 500
|
| 304 |
|
| 305 |
@app.route('/notifications/mark_read', methods=['POST'])
|