src/quagen/queries.py
def update_game(game):
    """
    Updates an existing Game object to the database

    Attr:
        game (Game): Game object to save
    """
    game.updated()
    db.write(
        "UPDATE game SET game_id = %s, data = %s, time_completed = %s, time_started = %s, time_updated = %s WHERE game_id = %s",
        [
            game.game_id,
            json.dumps(game.get_sensitive_state()),
            game.time_completed,
            game.time_started,
            game.time_updated,
            game.game_id,
        ],
    )

    Updates an existing Game object to the database

    Attr:
        game (Game): Game object to save
    
Updates an existing Game object to the database
Attr:
game (Game): Game object to save
Updates an existing Game object to the database Attr : game ( Game ) : Game object to save
def update_game(game):
    game.updated()
    db.write(
        "UPDATE game SET game_id = %s, data = %s, time_completed = %s, time_started = %s, time_updated = %s WHERE game_id = %s",
        [
            game.game_id,
            json.dumps(game.get_sensitive_state()),
            game.time_completed,
            game.time_started,
            game.time_updated,
            game.game_id,
        ],
    )
def update_game ( game ) : game . updated ( ) db . write ( "UPDATE game SET game_id = %s, data = %s, time_completed = %s, time_started = %s, time_updated = %s WHERE game_id = %s" , [ game . game_id , json . dumps ( game . get_sensitive_state ( ) ) , game . time_completed , game . time_started , game . time_updated , game . game_id , ] , )
Updates an existing Game object to the database
Attr:
game (Game): Game object to save
Updates an existing Game object to the database Attr : game ( Game ) : Game object to save
"""
    Updates an existing Game object to the database

    Attr:
        game (Game): Game object to save
    """
game