commit changes first

This commit is contained in:
Hongbo Wu 2024-08-05 15:38:36 +08:00
parent 431640605f
commit 498790d221

View file

@ -27,8 +27,9 @@ def batch_update_library_items(conn):
LIMIT {batch_size}
)
""")
rows_updated = cursor.rowcount
conn.commit()
rows_updated = cursor.rowcount
if rows_updated == 0:
break