From a4283fd878ef9356f871277ef8efdfaa80005b62 Mon Sep 17 00:00:00 2001 From: signedav Date: Mon, 17 Sep 2018 08:38:54 +0200 Subject: [PATCH] use enum instead of represented int --- qfieldsync/core/offline_converter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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