diff --git a/qfieldsync/core/offline_converter.py b/qfieldsync/core/offline_converter.py index c78fa863..9a546ea0 100644 --- a/qfieldsync/core/offline_converter.py +++ b/qfieldsync/core/offline_converter.py @@ -130,7 +130,6 @@ def convert(self): # save the offline project twice so that the offline plugin can "know" that it's a relative path QgsProject.instance().write(project_path) - try: # Run the offline plugin for gpkg gpkg_filename = "data.gpkg" @@ -138,7 +137,7 @@ def convert(self): offline_layer_ids = [l.id() for l in self.__offline_layers] if not self.offline_editing.convertToOfflineProject(self.export_folder, gpkg_filename, offline_layer_ids, - self.project_configuration.offline_copy_only_aoi, 1): + self.project_configuration.offline_copy_only_aoi, self.offline_editing.GPKG): raise Exception(self.tr("Error trying to convert layers to offline layers")) except AttributeError: # Run the offline plugin for spatialite