print number of rows

This commit is contained in:
callebtc 2022-07-24 22:10:46 +02:00
parent dd7f622a67
commit d93bd4bec1

View file

@ -94,6 +94,7 @@ def insert_to_pg(query, data):
cursor = get_postgres_cursor() cursor = get_postgres_cursor()
connection = cursor.connection connection = cursor.connection
print(f"Inserting {len(data)} rows...")
for d in data: for d in data:
try: try:
cursor.execute(query, d) cursor.execute(query, d)