sonar/database.py
def add(path):
        """
        Add a new board to the database

        Args:
            path (str): Path to the board files
        """
        with shelve.open(Constants.SONAR_DB_PATH) as db:
            boards = db["board"]
            board_name = os.path.basename(path)
            boards[board_name] = path
            db["board"] = boards

        Add a new board to the database

        Args:
            path (str): Path to the board files
        
Add a new board to the database
Add a new board to the database
def add(path):
        with shelve.open(Constants.SONAR_DB_PATH) as db:
            boards = db["board"]
            board_name = os.path.basename(path)
            boards[board_name] = path
            db["board"] = boards
def add ( path ) : with shelve . open ( Constants . SONAR_DB_PATH ) as db : boards = db [ "board" ] board_name = os . path . basename ( path ) boards [ board_name ] = path db [ "board" ] = boards
Add a new board to the database
Add a new board to the database
"""
        Add a new board to the database

        Args:
            path (str): Path to the board files
        """
path
Path to the board files
Path to the board files