From 66138855a3335fa0686b9864d3e733c25727a89d Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 4 Apr 2022 11:12:12 +0100 Subject: [PATCH] find the converted csvs --- etl/load_coordinates.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etl/load_coordinates.sh b/etl/load_coordinates.sh index d0b6756b..ae030d4d 100644 --- a/etl/load_coordinates.sh +++ b/etl/load_coordinates.sh @@ -20,7 +20,7 @@ psql -c "CREATE TABLE open_toid ( );" echo "Loading Open TOID CSV(s) to temporary table..." -find $opentoid_dir -type f -name '*.csv' \ +find $opentoid_dir -type f -name '*_converted.csv' \ -printf "$opentoid_dir/%f\n" | \ parallel \ cat {} '|' psql -c "\"COPY open_toid ( toid, version_number, version_date, source_product, easting, northing, longitude, latitute ) FROM stdin WITH CSV HEADER;\""