create payload of json string and then save it
Build and Push Docker Container / build-and-push (push) Successful in 1m33s
Build and Push Docker Container / build-and-push (push) Successful in 1m33s
This commit is contained in:
@@ -153,7 +153,7 @@ class LocalStorage:
|
|||||||
True if game_board.winner_snake_names and "me" in game_board.winner_snake_names else False
|
True if game_board.winner_snake_names and "me" in game_board.winner_snake_names else False
|
||||||
)
|
)
|
||||||
|
|
||||||
await save_file(save_file_path, {
|
payload = {
|
||||||
"winner": game_board.winner_snake_names,
|
"winner": game_board.winner_snake_names,
|
||||||
"game": {
|
"game": {
|
||||||
"url": game_board.url,
|
"url": game_board.url,
|
||||||
@@ -169,11 +169,9 @@ class LocalStorage:
|
|||||||
"calculations": game_board.snake_class.get_history(),
|
"calculations": game_board.snake_class.get_history(),
|
||||||
},
|
},
|
||||||
"dataset": dataset,
|
"dataset": dataset,
|
||||||
},
|
}
|
||||||
callback=json.dump,
|
|
||||||
indent=2,
|
await save_file(save_file_path, json.dumps(payload, indent=2, ensure_ascii=False))
|
||||||
ensure_ascii=False,
|
|
||||||
)
|
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user