Skip to content

Commit

Permalink
Fix arg-type
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagusiak committed Jan 2, 2024
1 parent eeb0116 commit 02d2b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odoo_connect/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def to_dbapi(self, con, table_name: str, *, only_data: bool = False, drop: bool
# create or replace table
if drop:
con.execute(f"drop table if exists {table_name}")
con.execute(f"create table {table_name}({', '.join(colspecs)})")
con.execute(f"create table {table_name}({', '.join(str(cs) for cs in colspecs)})")
elif drop:
# truncate table
con.execute(f"truncate table {table_name}")
Expand Down

0 comments on commit 02d2b1d

Please sign in to comment.