Skip to content

Commit

Permalink
Quickfix missing db records issue on brainz match
Browse files Browse the repository at this point in the history
by commiting after each execute_sql call.
  • Loading branch information
JOJ0 committed Nov 3, 2024
1 parent ae689ad commit 6d94f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discodos/model_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def execute_sql(self, sql, values_tuple=False, raise_err=False):
c.rowcount, c.lastrowid
)
)
# log.info("DB: Committing NOW")
# self.db_conn.commit()
log.info("DB: Committing NOW")
self.db_conn.commit()
log.debug("DB: Committing via context close NOW")
self.lastrowid = c.lastrowid
return c.rowcount
Expand Down

0 comments on commit 6d94f61

Please sign in to comment.