From dcbcb67ce84a672990657c9fbd6b988d471b5dca Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 30 Nov 2021 15:01:28 +0100 Subject: [PATCH] Fixed db connection --- src/cpl_core/database/context/database_context.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpl_core/database/context/database_context.py b/src/cpl_core/database/context/database_context.py index f71fe74d..2e00775f 100644 --- a/src/cpl_core/database/context/database_context.py +++ b/src/cpl_core/database/context/database_context.py @@ -33,6 +33,8 @@ class DatabaseContext(DatabaseContextABC): for table in self._tables: self._db.cursor.execute(table.get_create_string()) + self.save_changes() + def save_changes(self): self._db.server.commit()