Example #1
0
 def post(self):
   req = json.loads(self.request.body)
   score = int(req['score'])
   playerId = int(req['playerId'])
   
   player = db.Key.from_path('Player', playerId)
   
   Score(player=player, points=score).put()
   
   scoresHelper = ScoresHelper(playerId)
   scoresHelper.clearCache()