def post(self): self.channel = Channel() data = self.channel.clientDisconnected(self.request.get("from")) #Data is a list which has the player and the game, in that order) if data[1] : gu = GameUpdater(data[1]) gu.leaveGame(data[0])