diff --git a/gui/__main__.py b/gui/__main__.py index e11f344..68fbf8b 100644 --- a/gui/__main__.py +++ b/gui/__main__.py @@ -149,7 +149,7 @@ if is_compatable: except: logger.info(f"[DB MANAGEMENT] create ALL tables failed. Running migrations...") migration = migrate_sql() - logger.info(f"[DB MANAGEMENT] Results of migration is {made_tables}") + logger.info(f"[DB MANAGEMENT] Results of migration is {migration.valid}") if not migration.valid: db_version_you_have = 0 diff --git a/gui/v2/workers/worker_thread.py b/gui/v2/workers/worker_thread.py index a9a499e..9c15e3e 100755 --- a/gui/v2/workers/worker_thread.py +++ b/gui/v2/workers/worker_thread.py @@ -14,6 +14,7 @@ from core.controllers.SubscriptionPlanController import SubscriptionPlanControll from core.models.session.SessionConnection import SessionConnection from core.models.session.SessionProfile import SessionProfile from core.models.system.SystemConnection import SystemConnection +from core.models.BaseProfile import ProfileType from core.models.system.SystemProfile import SystemProfile from gui.v2.infrastructure.setup_observers import ( @@ -189,12 +190,23 @@ class WorkerThread(QThread): resolution = self.profile_data['resolution'] connection = SessionConnection(connection_type, mask_connection) profile = SessionProfile( - profile_id, name, None, location, resolution, application_version, connection) + id=profile_id, + name=name, + subscription=None, + type=ProfileType.SESSION, + location=location, + resolution=resolution, + application_version=application_version, + connection=connection) elif profile_type == "system": connection = SystemConnection(connection_type) profile = SystemProfile( - profile_id, name, None, location, connection) - + id=profile_id, + name=name, + type=ProfileType.SYSTEM, + subscription=None, + location=location, + connection=connection) else: self.text_output.emit(f"Invalid profile type: {profile_type}") return diff --git a/pyproject.toml b/pyproject.toml index b35b956..7187c1b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ classifiers = [ "Operating System :: POSIX :: Linux", ] dependencies = [ - "sp-hydra-veil-core == 2.4.0", + "sp-hydra-veil-core == 2.4.3", "pyperclip ~= 1.9.0", "pyqt6 ~= 6.7.1", "qrcode[pil] ~= 8.2"