commit transaction before closing

This commit is contained in:
Neil Johnson 2018-10-24 17:17:30 +01:00
parent 07126e43a4
commit 663d9db8e7
1 changed files with 1 additions and 0 deletions

View File

@ -207,6 +207,7 @@ class HomeServer(object):
logger.info("Setting up.") logger.info("Setting up.")
with self.get_db_conn() as conn: with self.get_db_conn() as conn:
self.datastore = self.DATASTORE_CLASS(conn, self) self.datastore = self.DATASTORE_CLASS(conn, self)
conn.commit()
logger.info("Finished setting up.") logger.info("Finished setting up.")
def get_reactor(self): def get_reactor(self):