Browse Source

status code

ash 2 years ago
parent
commit
98076da8bc
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Backend/Sources/View/view_manager.py

+ 3 - 1
Backend/Sources/View/view_manager.py

@@ -79,7 +79,9 @@ def after_request(response : flask.Response):
 
 
 def JsonStringToResponse(string : str) :
-    return jsonify(json.loads(string))
+    resp = jsonify(json.loads(string))
+    resp.status_code = 200
+    return
 
 def run() :
     global __server_process__