diff --git a/memberPlumbing/sqlExport.py b/memberPlumbing/sqlExport.py index b6e6ae0..ec23798 100755 --- a/memberPlumbing/sqlExport.py +++ b/memberPlumbing/sqlExport.py @@ -72,8 +72,12 @@ def do_import(config): ] ) - for transaction in transactions: - Transaction.from_csv_dict(transaction).insert_instance().execute() + Transaction.insert_many( + [ + Transaction.from_csv_dict(transaction).__data__ + for transaction in transactions + ] + ).execute() # TODO: folders, levels, addons