diff --git a/src/app.py b/src/app.py index 65263c28..97b633ec 100644 --- a/src/app.py +++ b/src/app.py @@ -738,7 +738,7 @@ def extract_current_data(self, exportname): dump_temp_file_path = os.path.join( working_dir, - f"{self.params.file_name if self.params.file_name else 'Export'}{'' if output_type == RawDataOutputType.MVT.value else f'.{output_type.lower()}'}", + f"{self.params.file_name if self.params.file_name else 'Export'}{f'.{output_type.lower()}'}", ) try: @@ -749,6 +749,10 @@ def extract_current_data(self, exportname): RawDataOutputType.MBTILES.value, RawDataOutputType.MVT.value, ]: + dump_temp_file_path = os.path.join( + working_dir, + f"{self.params.file_name if self.params.file_name else 'Export'}{'' if output_type == RawDataOutputType.MVT.value else f'.{output_type.lower()}'}", + ) RawData.ogr_export( query=raw_currentdata_extraction_query( self.params,