Skip to content

Commit

Permalink
use bool instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
MoYoez committed Jul 25, 2023
1 parent 7da51f5 commit c1dc7bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_bests():
best_list_args = {"bests": bests}
best_list = {**is_phi, **best_list_args}
get_formatData = BestsRender.get_formatData(session)
status = "true"
status = True
content = {**best_list, **get_formatData}
data = {"status": status, "content": content}
data = json.dumps(data, ensure_ascii=False).encode("utf-8")
Expand Down
4 changes: 2 additions & 2 deletions method.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def parse_render_bests(gameRecord, overflow: int):
]
render.extend(records[: 19 + overflow])
if render[0]["score"] == 1000000:
isPhi = "true"
isPhi = True
else:
isPhi = "false"
isPhi = False
return render, isPhi


Expand Down

0 comments on commit c1dc7bb

Please sign in to comment.