DmitrMakeev commited on
Commit
8cab7d2
1 Parent(s): 45ffbfb

Update google_db.py

Browse files
Files changed (1) hide show
  1. google_db.py +4 -2
google_db.py CHANGED
@@ -45,8 +45,10 @@ def save_db():
45
  err = 1 if response.status_code == 200 else 0
46
 
47
  response_data = {
48
- "status": response.text,
49
-
 
 
50
  }
51
 
52
  return jsonify(response_data)
 
45
  err = 1 if response.status_code == 200 else 0
46
 
47
  response_data = {
48
+ "status": "success" if err == 1 else "error",
49
+ "err": err,
50
+ "message": "Operation completed successfully" if err == 1 else "Operation failed",
51
+ "server_response": globs.server_response
52
  }
53
 
54
  return jsonify(response_data)