From ca8e8405516db36d7ce769449992750baeb41053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Blanqu=C3=A9=20=28WCMC=29?= Date: Fri, 1 Nov 2024 11:25:02 +0000 Subject: [PATCH 1/2] chore: edit CSV to make it UTF8 compliant rather than UTF8 with BOM which makes national stats fail --- lib/data/seeds/country_statistics_2024-11-01.csv | 2 +- lib/data/seeds/global_statistics_2024-11-01.csv | 2 +- lib/data/seeds/pame_country_statistics_2024-11-01.csv | 2 +- lib/data/seeds/pame_data_2024-11-01.csv | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/data/seeds/country_statistics_2024-11-01.csv b/lib/data/seeds/country_statistics_2024-11-01.csv index 9d536f4f7..012e6f32e 100644 --- a/lib/data/seeds/country_statistics_2024-11-01.csv +++ b/lib/data/seeds/country_statistics_2024-11-01.csv @@ -1,4 +1,4 @@ -iso3,pa_marine_area,pa_land_area,marine_area,land_area,percentage_pa_land_cover,percentage_pa_marine_cover,percentage_nr_land_cover,percentage_nr_marine_cover,nr_version,nr_report_url,oecms_pa_marine_area,oecms_pa_land_area,percentage_oecms_pa_land_cover,percentage_oecms_pa_marine_cover +iso3,pa_marine_area,pa_land_area,marine_area,land_area,percentage_pa_land_cover,percentage_pa_marine_cover,percentage_nr_land_cover,percentage_nr_marine_cover,nr_version,nr_report_url,oecms_pa_marine_area,oecms_pa_land_area,percentage_oecms_pa_land_cover,percentage_oecms_pa_marine_cover ABNJ,3172934.69,48892.57,222490330.6,0,0,1.43,na,na,na,na,3172934.69,48892.57,0,1.43 ABW,0.26,35.38,29972.5,179.72,19.69,0,na,na,na,na,0.26,35.38,19.69,0 AFG,0,23336.37,0,641814.37,3.64,0,na,na,0,No information found in 5th National Report,0,23336.37,3.64,0 diff --git a/lib/data/seeds/global_statistics_2024-11-01.csv b/lib/data/seeds/global_statistics_2024-11-01.csv index 38f28d734..ef88d4eb3 100644 --- a/lib/data/seeds/global_statistics_2024-11-01.csv +++ b/lib/data/seeds/global_statistics_2024-11-01.csv @@ -1,4 +1,4 @@ -type,description,value +type,description,value total_protected_areas,number of protected areas,303309 total_terrestrial_protected_areas,number of terrestrial and inland waters protected areas,286781 total_marine_protected_areas,number of marine protected areas,16528 diff --git a/lib/data/seeds/pame_country_statistics_2024-11-01.csv b/lib/data/seeds/pame_country_statistics_2024-11-01.csv index 03eccd655..02e71eaa5 100644 --- a/lib/data/seeds/pame_country_statistics_2024-11-01.csv +++ b/lib/data/seeds/pame_country_statistics_2024-11-01.csv @@ -1,4 +1,4 @@ -iso3,pame_pa_marine_area,pame_pa_land_area,pame_percentage_pa_marine_cover,pame_percentage_pa_land_cover +iso3,pame_pa_marine_area,pame_pa_land_area,pame_percentage_pa_marine_cover,pame_percentage_pa_land_cover ABNJ,0,0,0,0 ABW,0,0,0,0 AFG,0,606.27,0,0.09 diff --git a/lib/data/seeds/pame_data_2024-11-01.csv b/lib/data/seeds/pame_data_2024-11-01.csv index 297df3b5a..39e6f1462 100644 --- a/lib/data/seeds/pame_data_2024-11-01.csv +++ b/lib/data/seeds/pame_data_2024-11-01.csv @@ -1,4 +1,4 @@ -evaluation_id,wdpa_id,iso3,methodology,year,url,metadata_id,name,designation,source_data_title,source_resp_party,source_year,source_language,restricted,assessment_is_public, +evaluation_id,wdpa_id,iso3,methodology,year,url,metadata_id,name,designation,source_data_title,source_resp_party,source_year,source_language,restricted,assessment_is_public, 1,555622076,ARE,METT,2016,Not Reported,1,Al Aqqa,Protected Area,UAE Management Effectiveness Evaluation,Ministry of Climate Change and Environment,2018,Arabic,FALSE,FALSE, 2,555622075,ARE,METT,2016,Not Reported,1,Al Bidiya,Protected Area,UAE Management Effectiveness Evaluation,Ministry of Climate Change and Environment,2018,Arabic,FALSE,FALSE, 3,555622070,ARE,METT,2016,Not Reported,1,Al Ghaf of Nazwa,Protected Area,UAE Management Effectiveness Evaluation,Ministry of Climate Change and Environment,2018,Arabic,FALSE,FALSE, From 98ac44544d0b7c698726fdac3101142864a68607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Blanqu=C3=A9=20=28WCMC=29?= Date: Fri, 1 Nov 2024 11:26:20 +0000 Subject: [PATCH 2/2] chore: edit CSV to make it UTF8 compliant rather than UTF8 with BOM which makes national stats fail --- lib/data/seeds/pame_data_2024-11-01.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/data/seeds/pame_data_2024-11-01.csv b/lib/data/seeds/pame_data_2024-11-01.csv index 39e6f1462..297df3b5a 100644 --- a/lib/data/seeds/pame_data_2024-11-01.csv +++ b/lib/data/seeds/pame_data_2024-11-01.csv @@ -1,4 +1,4 @@ -evaluation_id,wdpa_id,iso3,methodology,year,url,metadata_id,name,designation,source_data_title,source_resp_party,source_year,source_language,restricted,assessment_is_public, +evaluation_id,wdpa_id,iso3,methodology,year,url,metadata_id,name,designation,source_data_title,source_resp_party,source_year,source_language,restricted,assessment_is_public, 1,555622076,ARE,METT,2016,Not Reported,1,Al Aqqa,Protected Area,UAE Management Effectiveness Evaluation,Ministry of Climate Change and Environment,2018,Arabic,FALSE,FALSE, 2,555622075,ARE,METT,2016,Not Reported,1,Al Bidiya,Protected Area,UAE Management Effectiveness Evaluation,Ministry of Climate Change and Environment,2018,Arabic,FALSE,FALSE, 3,555622070,ARE,METT,2016,Not Reported,1,Al Ghaf of Nazwa,Protected Area,UAE Management Effectiveness Evaluation,Ministry of Climate Change and Environment,2018,Arabic,FALSE,FALSE,