Skip to content

Commit

Permalink
Fix syntax issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Sep 12, 2024
1 parent be74fc9 commit da0a597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ def process_export_format(export_format):
else ""
)
if USE_DUCK_DB_FOR_CUSTOM_EXPORTS is True:
executable_query = f"""COPY ({query.strip()}) TO '{export_file_path}' WITH (FORMAT {export_format.format_option}{f", DRIVER '{export_format.driver_name}'{f', SRS 4326, LAYER_CREATION_OPTIONS {layer_creation_options_str}' if layer_creation_options_str else ''}" if export_format.format_option == 'GDAL' else ''})"""
executable_query = f"""COPY ({query.strip()}) TO '{export_file_path}' WITH (FORMAT {export_format.format_option}{f", DRIVER '{export_format.driver_name}'{f", SRS 'EPSG:4326', LAYER_CREATION_OPTIONS {layer_creation_options_str}" if layer_creation_options_str else ''}" if export_format.format_option == 'GDAL' else ''})"""
self.duck_db_instance.run_query(
executable_query.strip(), load_spatial=True
)
Expand Down

0 comments on commit da0a597

Please sign in to comment.