Skip to content

Commit

Permalink
use enum instead of represented int
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Sep 17, 2018
1 parent 862ab6f commit a4283fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qfieldsync/core/offline_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,14 @@ 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"
if self.__offline_layers:
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
Expand Down

0 comments on commit a4283fd

Please sign in to comment.