diff --git a/mdaadb/database.py b/mdaadb/database.py index af910c1..544d30f 100644 --- a/mdaadb/database.py +++ b/mdaadb/database.py @@ -178,7 +178,7 @@ def insert_rows_into_table( table = Table(table, self) if columns: - place_holders = "(" + ", ".join((len(columns) * "?").split()) + ")" + place_holders = "(" + ", ".join(len(columns)*"?".split()) + ")" column_names = ", ".join(columns) tbl_with_cols = f"{table.name} ({column_names})" with self.connection: @@ -190,7 +190,7 @@ def insert_rows_into_table( return - place_holders = "(" + ", ".join((table.n_cols * "?").split()) + ")" + place_holders = "(" + ", ".join(table.n_cols*"?".split()) + ")" with self.connection: ( self.INSERT_INTO(table.name)