change from sync to async and from flask to quart
Build and Push Docker Container / build-and-push (push) Successful in 1m35s
Build and Push Docker Container / build-and-push (push) Successful in 1m35s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user