change from sync to async and from flask to quart
Build and Push Docker Container / build-and-push (push) Successful in 1m35s

This commit is contained in:
2026-01-06 13:36:43 +01:00
parent 962d8b1043
commit 6e74b5fb57
6 changed files with 85 additions and 90 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ class LocalStorage:
return os.path.join(storage_folder, file_name)
def save(self, game_board:GameBoard):
async def save(self, game_board:GameBoard):
game_type = game_board.get_type_of_game()
save_file_path = self._get_correct_folder_for_save_file(
game_board,
@@ -38,7 +38,7 @@ class LocalStorage:
True if game_board.winner_snake_names and "me" in game_board.winner_snake_names else False
)
save_file(save_file_path, {
await save_file(save_file_path, {
"winner": game_board.winner_snake_names,
"game": {
"url": game_board.url,