Skip to content

Commit

Permalink
fix(database): add init function for renamed DriverDatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
rluzuriaga committed Jan 21, 2025
1 parent 470c9f9 commit 4157195
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/opendriverstudio/database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ def _get_db_connection(self) -> Generator[sqlite3.Connection, None, None]:


class DriverDatabase(BaseDatabase):
def __init__(self, db_file=DATABASE_FILE, db_schema=DATABASE_SCHEMA):
super().__init__(db_file, db_schema)

def insert_into_drivers_table(self, data: dict[str, Any]) -> None:
sql_query = """
INSERT INTO drivers (driver_name, driver_version, driver_path, driver_type)
Expand Down

0 comments on commit 4157195

Please sign in to comment.