create payload of json string and then save it
Build and Push Docker Container / build-and-push (push) Successful in 1m33s

This commit is contained in:
2026-04-03 14:31:15 +02:00
parent a82eaaaec5
commit 2d7a2505d4
+4 -6
View File
@@ -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