Exemplo n.º 1
0
 def post(self):
     """Update count of active games announcement in memcache."""
     TicTacToeApi._cache_active_games()
     self.response.set_status(204)
Exemplo n.º 2
0
 def post():
     """This method which is called via the task queue
     decrements the number of active games in cache"""
     TicTacToeApi.decrement_active_games()
Exemplo n.º 3
0
 def post(self):
     """Update game listing announcement in memcache."""
     TicTacToeApi._cache_average_win_rates()
     self.response.set_status(204)
Exemplo n.º 4
0
 def post(self):
     """Update game listing announcement in memcache."""
     user_name = self.request.get("user_name")
     TicTacToeApi._cache_winning_chance(user_name)
     self.response.set_status(204)
Exemplo n.º 5
0
 def post(self):
     """Update game listing announcement in memcache."""
     user_name = self.request.get("user_name")
     TicTacToeApi._cache_winning_chance(user_name)
     self.response.set_status(204)
Exemplo n.º 6
0
 def post(self):
     """Update player rankings.
        Will be called from task queue"""
     TicTacToeApi._get_winning_percentage(self.request.get('player'))
     self.response.set_status(204)
Exemplo n.º 7
0
 def post(self):
     """Update active game count in memcache."""
     TicTacToeApi._cache_count_active_games()
     self.response.set_status(204)