Skip to content

Commit

Permalink
fix(unit-test-failing): only add file format if tiles are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Aug 9, 2024
1 parent 8168149 commit 5dba5ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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,
Expand Down

0 comments on commit 5dba5ea

Please sign in to comment.