Skip to content

Commit

Permalink
add false status
Browse files Browse the repository at this point in the history
  • Loading branch information
MoYoez committed Jul 31, 2023
1 parent 503e1b0 commit 23a6468
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ def get_bests():
best_list_args = {"bests": bests}
best_list = {**is_phi, **best_list_args}
get_formatData = BestsRender.get_formatData(session)
status = True
content = {**best_list, **get_formatData}
data = {"status": status, "content": content}
data = {"status": True, "content": content}
data = json.dumps(data, ensure_ascii=False).encode("utf-8")
data = make_response(data)
data.headers["Content-Type"] = "application/json; charset=utf-8"
except Exception as e:
return jsonify({"message": str(e)})
return jsonify({"status": False, "message": str(e)})
return data


Expand Down

0 comments on commit 23a6468

Please sign in to comment.