diff --git a/artemis/ui/spaceweather.py b/artemis/ui/spaceweather.py index 89ed78f..7f3e521 100644 --- a/artemis/ui/spaceweather.py +++ b/artemis/ui/spaceweather.py @@ -53,10 +53,10 @@ class UIspaceweather(QObject): def download_poseidon_report(self): - network_manager = self._parent.network_manager - network_manager.show_popup = True - poseidon_data = network_manager.fetch_remote_json( - Constants.POSEIDON_REPORT_URL + update_manager = self._parent.update_manager + poseidon_data = update_manager.fetch_remote_json( + Constants.POSEIDON_REPORT_URL, + True ) if poseidon_data: self.load_poseidon_report.emit(poseidon_data) diff --git a/artemis/utils/update_utils.py b/artemis/utils/update_utils.py index 185a944..643dca4 100644 --- a/artemis/utils/update_utils.py +++ b/artemis/utils/update_utils.py @@ -43,7 +43,7 @@ class UpdateManager: Defaults to False. True is usefull when the user manual check for updates. """ - latest_json = self._fetch_remote_json(Constants.LATEST_VERSION_URL, show_popup) + latest_json = self.fetch_remote_json(Constants.LATEST_VERSION_URL, show_popup) if latest_json: local_db = self._load_local_db() remote_db = latest_json['sigID_DB'] @@ -83,7 +83,7 @@ class UpdateManager: self._show_popup_initial_db_download() - def _fetch_remote_json(self, url, show_popup=False): + def fetch_remote_json(self, url, show_popup=False): """ Fetches the remote json from a url Args: