Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwutk committed Dec 27, 2023
1 parent 7280d81 commit c6d8c66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/import_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Database,
database,
columns,
place_holder,
)


Expand Down Expand Up @@ -88,6 +87,10 @@ def _name(column: "tuple[str, str]") -> str:
return column[0]


def place_holder(num: int):
return ",".join(["%s"] * num)


def _insert_into_camera(database: "Database", value: tuple, commit=True):
cursor = database.connection.cursor()
cursor.execute(
Expand Down

0 comments on commit c6d8c66

Please sign in to comment.