def end_game(m): """Terminate a game""" game_is = m.group("game_id") status = OK result = logic.end_game(game_id) if not result: status = ERROR response_body = json.dumps(result) return response(status, JSON, response_body)
def run_end(): logic.end_game(db,game)
def run_end(): logic.end_game(db,game,request.json['error'])
def run_end(): logic.end_game(db, game)
def run_end(): logic.end_game(db, game, request.json['error'])