From da0a59760103c7e42fabcd60bb9b6637a1f873cd Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Thu, 12 Sep 2024 17:10:13 +0545 Subject: [PATCH] Fix syntax issue --- src/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.py b/src/app.py index 7f2a22a8..8181e9d4 100644 --- a/src/app.py +++ b/src/app.py @@ -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 )