예제 #1
0
def add_player_score(match_id, c_round, player_id, r_score):
    session = connectToDatabase()
    player_score = Score()
    player_score.match_id = match_id
    player_score.round = c_round
    player_score.player_id = player_id
    player_score.r_score = r_score
    session.add(player_score)
    session.commit()
    session.close()