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
|
||||
)
|
||||
|
||||
await save_file(save_file_path, {
|
||||
payload = {
|
||||
"winner": game_board.winner_snake_names,
|
||||
"game": {
|
||||
"url": game_board.url,
|
||||
@@ -169,11 +169,9 @@ class LocalStorage:
|
||||
"calculations": game_board.snake_class.get_history(),
|
||||
},
|
||||
"dataset": dataset,
|
||||
},
|
||||
callback=json.dump,
|
||||
indent=2,
|
||||
ensure_ascii=False,
|
||||
)
|
||||
}
|
||||
|
||||
await save_file(save_file_path, json.dumps(payload, indent=2, ensure_ascii=False))
|
||||
|
||||
def cleanup(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user