Пример #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)
Пример #2
0
		def run_end():
			logic.end_game(db,game)
Пример #3
0
		def run_end():
			logic.end_game(db,game,request.json['error'])
Пример #4
0
 def run_end():
     logic.end_game(db, game)
Пример #5
0
 def run_end():
     logic.end_game(db, game, request.json['error'])