Started integrating the database to the UI so it can save the data into the database

This commit is contained in:
Gustavo Henrique Santos Souza de Miranda
2025-06-25 14:58:54 -03:00
parent 4a5da4d44c
commit f1195391db
5 changed files with 15 additions and 10 deletions
+4 -1
View File
@@ -7,7 +7,10 @@ from pilgrim.ui.ui import UIApp
class Application:
def __init__(self):
self.database = Database()
self.ui = UIApp(ServiceManagerMock())
session = self.database.session()
session_manager = ServiceManager()
session_manager.set_session(session)
self.ui = UIApp(session_manager)
def run(self):
self.database.create()