Fixed db connection

This commit is contained in:
Sven Heidemann 2021-11-30 15:01:28 +01:00
parent d57fd10718
commit dcbcb67ce8

View File

@ -33,6 +33,8 @@ class DatabaseContext(DatabaseContextABC):
for table in self._tables: for table in self._tables:
self._db.cursor.execute(table.get_create_string()) self._db.cursor.execute(table.get_create_string())
self.save_changes()
def save_changes(self): def save_changes(self):
self._db.server.commit() self._db.server.commit()