mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-10 01:20:16 +00:00
Started integrating the database to the UI so it can save the data into the database
This commit is contained in:
parent
4a5da4d44c
commit
f1195391db
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user