src/quagen/queries.py
def insert_game(game):
    """
    Inserts a new Game object to the database

    Attr:
        game (Game): Game object to save
    """
    db.write(
        "INSERT INTO game (game_id, data, time_created, time_started, time_updated) VALUES (%s, %s, %s, %s, %s)",
        [
            game.game_id,
            json.dumps(game.get_sensitive_state()),
            game.time_created,
            game.time_started,
            game.time_updated,
        ],
    )

    Inserts a new Game object to the database

    Attr:
        game (Game): Game object to save
    
Inserts a new Game object to the database
Attr:
game (Game): Game object to save
Inserts a new Game object to the database Attr : game ( Game ) : Game object to save
def insert_game(game):
    db.write(
        "INSERT INTO game (game_id, data, time_created, time_started, time_updated) VALUES (%s, %s, %s, %s, %s)",
        [
            game.game_id,
            json.dumps(game.get_sensitive_state()),
            game.time_created,
            game.time_started,
            game.time_updated,
        ],
    )
def insert_game ( game ) : db . write ( "INSERT INTO game (game_id, data, time_created, time_started, time_updated) VALUES (%s, %s, %s, %s, %s)" , [ game . game_id , json . dumps ( game . get_sensitive_state ( ) ) , game . time_created , game . time_started , game . time_updated , ] , )
Inserts a new Game object to the database
Attr:
game (Game): Game object to save
Inserts a new Game object to the database Attr : game ( Game ) : Game object to save
"""
    Inserts a new Game object to the database

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