Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -211,7 +211,7 @@ def save_settings_route():
|
|
211 |
if origin != ALLOWED_ORIGIN:
|
212 |
return jsonify({"error": "Unauthorized access"}), 403
|
213 |
|
214 |
-
data = request.json
|
215 |
if data:
|
216 |
for key, value in data.items():
|
217 |
if value is not None:
|
|
|
211 |
if origin != ALLOWED_ORIGIN:
|
212 |
return jsonify({"error": "Unauthorized access"}), 403
|
213 |
|
214 |
+
data = request.json.get('data', {})
|
215 |
if data:
|
216 |
for key, value in data.items():
|
217 |
if value is not None:
|