From 8f114caca5d5a197734c1de3e8b7cf6b5e750e2a Mon Sep 17 00:00:00 2001 From: Kleidis <167202775+kleidis@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:34:42 +0200 Subject: [PATCH] network: Move code to network folder --- init_instances.py | 4 ++-- network_functions.py => network/network_functions.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) rename network_functions.py => network/network_functions.py (99%) diff --git a/init_instances.py b/init_instances.py index ef3342c..af3d470 100644 --- a/init_instances.py +++ b/init_instances.py @@ -22,13 +22,13 @@ def main(self): @property def online(self): if self._online is None: - from network_functions import Online # Import Online from network_functions + from network.network_functions import Online # Import Online from network_functions self._online = Online() return self._online @property def download(self): - from network_functions import DownloadWorker + from network.network_functions import DownloadWorker return DownloadWorker() # Always return a new instance to reset the thread @property diff --git a/network_functions.py b/network/network_functions.py similarity index 99% rename from network_functions.py rename to network/network_functions.py index 8af2959..6e84c28 100644 --- a/network_functions.py +++ b/network/network_functions.py @@ -86,8 +86,7 @@ def filter_emulator_data(self): self.emulator_database = emulator_data # Store the data for later use throughout the codebase return emulator_data - -# Download Worker class to download the files +# Worker thread used for downlaoding emulators class DownloadWorker(QObject): progress = pyqtSignal(int) finished = pyqtSignal()