DmitrMakeev commited on
Commit
115e1c7
·
verified ·
1 Parent(s): 0a95758

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: