Replace self.sql.commit with self.commit.
This commit is contained in:
parent
72be07bdb7
commit
a3f7c796c4
1 changed files with 2 additions and 2 deletions
|
@ -1945,12 +1945,12 @@ class PhotoDB(
|
|||
def _first_time_setup(self):
|
||||
self.log.info('Running first-time database setup.')
|
||||
self.sql_executescript(constants.DB_INIT)
|
||||
self.sql.commit()
|
||||
self.commit()
|
||||
|
||||
def _load_pragmas(self):
|
||||
self.log.debug('Reloading pragmas.')
|
||||
self.sql_executescript(constants.DB_PRAGMAS)
|
||||
self.sql.commit()
|
||||
self.commit()
|
||||
|
||||
# Will add -> PhotoDB when forward references are supported
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in a new issue