From d20105fec2eb482a63d46b8a7d22de39831a31be Mon Sep 17 00:00:00 2001 From: Daniel Mannarino Date: Mon, 22 Jul 2024 01:09:35 -0400 Subject: [PATCH] Fix SO MANY BUGS --- app/tasks/static_vector_tile_cache_assets.py | 2 +- batch/scripts/create_vector_tile_cache.sh | 2 +- batch/scripts/get_arguments.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/tasks/static_vector_tile_cache_assets.py b/app/tasks/static_vector_tile_cache_assets.py index 57c001b3..e1a89777 100644 --- a/app/tasks/static_vector_tile_cache_assets.py +++ b/app/tasks/static_vector_tile_cache_assets.py @@ -120,7 +120,7 @@ async def static_vector_tile_cache_asset( if creation_options.feature_filter: command += ( "--filter", - f"'{json.dumps(jsonable_encoder(creation_options.feature_filter))}'" + json.dumps(jsonable_encoder(creation_options.feature_filter)) ) tile_cache_jobs.append( diff --git a/batch/scripts/create_vector_tile_cache.sh b/batch/scripts/create_vector_tile_cache.sh index 1a671b6a..b6bac74a 100755 --- a/batch/scripts/create_vector_tile_cache.sh +++ b/batch/scripts/create_vector_tile_cache.sh @@ -50,7 +50,7 @@ keep_all) # never drop or coalesce feature, ignore size and feature count ;; esac -if [ -n "FILTER" ]; then +if [ -n "${FILTER}" ]; then TIPPE_ARG_ARRAY+=("-j" "${FILTER}") fi diff --git a/batch/scripts/get_arguments.sh b/batch/scripts/get_arguments.sh index 44996a48..bb4b9085 100755 --- a/batch/scripts/get_arguments.sh +++ b/batch/scripts/get_arguments.sh @@ -91,7 +91,7 @@ do shift # past value ;; --filter) - filter="$2" + FILTER="$2" shift shift ;;