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:
@@ -45,7 +45,7 @@ class EdgeDB:
|
||||
|
||||
return data
|
||||
|
||||
def insert(self, game_board:GameBoard):
|
||||
async def insert(self, game_board:GameBoard):
|
||||
game_type = game_board.get_type_of_game()
|
||||
|
||||
self.run_query_with_reconnection(
|
||||
@@ -104,8 +104,8 @@ class EdgeDB:
|
||||
snake_type=game_board.snake_class.__class__.__name__,
|
||||
)
|
||||
|
||||
def save(self, game_board:GameBoard):
|
||||
self.insert(game_board)
|
||||
async def save(self, game_board:GameBoard):
|
||||
await self.insert(game_board)
|
||||
|
||||
def __del__(self):
|
||||
self.client.close()
|
||||
|
||||
Reference in New Issue
Block a user