From 394a032cf2667fd44cda74c3fdf95b5e3e8a56bd Mon Sep 17 00:00:00 2001 From: anuveyatsu Date: Mon, 23 Mar 2020 11:58:01 +0600 Subject: [PATCH] [flows][xs]: fix script to make the schema correct for both resources. - worldwide resource had extra columns that is not needed, eg, country, province, lat, lon. --- process.py | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/process.py b/process.py index cf406cd..e8d3899 100644 --- a/process.py +++ b/process.py @@ -58,7 +58,7 @@ Flow( ), delete_fields(['Case']), update_resource('time_series_19-covid-Deaths', name='time-series-19-covid-combined', path='data/time-series-19-covid-combined.csv'), - update_schema('worldwide-aggregated', fields=[ + update_schema('time-series-19-covid-combined', fields=[ { "format": "%Y-%m-%d", "name": "Date", @@ -139,30 +139,6 @@ Flow( ) ), update_schema('worldwide-aggregated', fields=[ - { - "format": "default", - "name": "Province/State", - "type": "string" - }, - { - "format": "default", - "name": "Country/Region", - "type": "string" - }, - { - "decimalChar": ".", - "format": "default", - "groupChar": "", - "name": "Lat", - "type": "number" - }, - { - "decimalChar": ".", - "format": "default", - "groupChar": "", - "name": "Long", - "type": "number" - }, { "format": "%Y-%m-%d", "name": "Date",