correct end game active metric count
Build and Push Docker Container / build-and-push (push) Successful in 52s
Build and Push Docker Container / build-and-push (push) Successful in 52s
This commit is contained in:
+1
-1
@@ -127,6 +127,7 @@ class Server:
|
||||
|
||||
await await_log(self.logger.info(f'GAME ENDED: Winner is {[x['name'] for x in game_state['board']['snakes']]}'))
|
||||
await self._delete_game_board(game_state)
|
||||
await self.metrics_collector.record_game_end(game_state)
|
||||
return 'ok'
|
||||
|
||||
@self.app.after_request
|
||||
@@ -263,7 +264,6 @@ class Server:
|
||||
|
||||
game_board.read_game_data(game_state)
|
||||
if end:
|
||||
await self.metrics_collector.record_game_end(game_state)
|
||||
game_board.end_game(game_state)
|
||||
await self._persist_game_board(game_id, game_board)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user