From 6529e809eeeaba01cc7a099cc2286a775b459a48 Mon Sep 17 00:00:00 2001 From: edisj Date: Sun, 14 Jul 2024 23:36:55 -0700 Subject: [PATCH] fix weird string.split() bug for tests --- mdaadb/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)