diff --git a/src/qgis_geonode/apiclient/base.py b/src/qgis_geonode/apiclient/base.py index e6a7c8c..229926b 100644 --- a/src/qgis_geonode/apiclient/base.py +++ b/src/qgis_geonode/apiclient/base.py @@ -33,7 +33,7 @@ class BaseGeonodeClient(QtCore.QObject): style_detail_error_received = QtCore.pyqtSignal([str], [str, int, str]) keyword_list_received = QtCore.pyqtSignal(list) search_error_received = QtCore.pyqtSignal([str], [str, int, str]) - dataset_uploaded = QtCore.pyqtSignal(int) + dataset_uploaded = QtCore.pyqtSignal() dataset_upload_error_received = QtCore.pyqtSignal([str], [str, int, str]) def __init__( diff --git a/src/qgis_geonode/apiclient/geonode_api_v2.py b/src/qgis_geonode/apiclient/geonode_api_v2.py index 8f146f1..33fc684 100644 --- a/src/qgis_geonode/apiclient/geonode_api_v2.py +++ b/src/qgis_geonode/apiclient/geonode_api_v2.py @@ -179,12 +179,7 @@ def handle_layer_upload(self, result: bool): if result: response_contents = self.network_fetcher_task.response_contents[0] if response_contents.http_status_code in success_statuses: - deserialized = network.deserialize_json_response( - response_contents.response_body - ) - catalogue_url = deserialized["url"] - dataset_pk = catalogue_url.rsplit("/")[-1] - self.dataset_uploaded.emit(int(dataset_pk)) + self.dataset_uploaded.emit() else: self.dataset_upload_error_received[str, int, str].emit( response_contents.qt_error, diff --git a/src/qgis_geonode/gui/geonode_map_layer_config_widget.py b/src/qgis_geonode/gui/geonode_map_layer_config_widget.py index b020236..d6e9884 100644 --- a/src/qgis_geonode/gui/geonode_map_layer_config_widget.py +++ b/src/qgis_geonode/gui/geonode_map_layer_config_widget.py @@ -394,7 +394,7 @@ def upload_layer_to_geonode(self) -> None: self.layer, allow_public_access=self.public_access_chb.isChecked() ) - def handle_layer_uploaded(self, dataset_pk: int): + def handle_layer_uploaded(self): self._toggle_upload_controls(enabled=True) self._show_message("Layer uploaded successfully!")