Replace self.sql.commit with self.commit.

master
voussoir 2021-09-30 15:08:46 -07:00
parent 72be07bdb7
commit a3f7c796c4
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 2 additions and 2 deletions

View File

@ -1945,12 +1945,12 @@ class PhotoDB(
def _first_time_setup(self): def _first_time_setup(self):
self.log.info('Running first-time database setup.') self.log.info('Running first-time database setup.')
self.sql_executescript(constants.DB_INIT) self.sql_executescript(constants.DB_INIT)
self.sql.commit() self.commit()
def _load_pragmas(self): def _load_pragmas(self):
self.log.debug('Reloading pragmas.') self.log.debug('Reloading pragmas.')
self.sql_executescript(constants.DB_PRAGMAS) self.sql_executescript(constants.DB_PRAGMAS)
self.sql.commit() self.commit()
# Will add -> PhotoDB when forward references are supported # Will add -> PhotoDB when forward references are supported
@classmethod @classmethod