Example #1
0
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'])
Example #4
0
 def run_end():
     logic.end_game(db, game)
Example #5
0
 def run_end():
     logic.end_game(db, game, request.json['error'])