diff --git a/app/services/location/jhu.py b/app/services/location/jhu.py index 38b20c2e..9fde386f 100644 --- a/app/services/location/jhu.py +++ b/app/services/location/jhu.py @@ -52,11 +52,6 @@ def get_category(category): # URL to request data from. url = base_url + "time_series_covid19_%s_global.csv" % category - # Different URL is needed for recoveries. - # Read about deprecation here: https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series. - if category == "recovered": - url = base_url + "time_series_19-covid-Recovered.csv" - # Request the data request = requests.get(url) text = request.text diff --git a/tests/example_data/time_series_19-covid-Recovered.csv b/tests/example_data/time_series_covid19_recovered_global.csv similarity index 100% rename from tests/example_data/time_series_19-covid-Recovered.csv rename to tests/example_data/time_series_covid19_recovered_global.csv diff --git a/tests/test_jhu.py b/tests/test_jhu.py index 2db58140..f9c214a6 100644 --- a/tests/test_jhu.py +++ b/tests/test_jhu.py @@ -33,9 +33,6 @@ def read_file(self, state): # Determine filepath. filepath = "tests/example_data/{}.csv".format(state) - if state == "recovered": - filepath = "tests/example_data/time_series_19-covid-Recovered.csv" - # Return fake response. print("Try to read {}".format(filepath)) with open(filepath, "r") as file: