diff --git a/app/services/location/jhu.py b/app/services/location/jhu.py index c79900e0..0a42c9d9 100644 --- a/app/services/location/jhu.py +++ b/app/services/location/jhu.py @@ -116,7 +116,7 @@ def get_locations(): # Get all of the data categories locations. confirmed = get_category('confirmed')['locations'] deaths = get_category('deaths')['locations'] - recovered = get_category('recovered')['locations'] + # recovered = get_category('recovered')['locations'] # Final locations to return. locations = [] @@ -127,7 +127,7 @@ def get_locations(): timelines = { 'confirmed' : confirmed[index]['history'], 'deaths' : deaths[index]['history'], - 'recovered' : recovered[index]['history'], + # 'recovered' : recovered[index]['history'], } # Grab coordinates. @@ -151,7 +151,7 @@ def get_locations(): { 'confirmed': Timeline({ datetime.strptime(date, '%m/%d/%y').isoformat() + 'Z': amount for date, amount in timelines['confirmed'].items() }), 'deaths' : Timeline({ datetime.strptime(date, '%m/%d/%y').isoformat() + 'Z': amount for date, amount in timelines['deaths'].items() }), - 'recovered': Timeline({ datetime.strptime(date, '%m/%d/%y').isoformat() + 'Z': amount for date, amount in timelines['recovered'].items() }) + 'recovered': Timeline({}) } )) diff --git a/tests/test_routes.py b/tests/test_routes.py index 18138f09..e08eb349 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -86,7 +86,7 @@ def test_v2_latest(self, mock_request_get, mock_datetime): 'latest': { 'confirmed': 1940, 'deaths': 1940, - 'recovered': 1940 + 'recovered': 0 } }