Skip to content

Commit 959b029

Browse files
authored
Merge pull request ExpDev07#195 from ExpDev07/add-v1-recovieres
add recoveries to v1
2 parents e4e7b4b + 50f28ed commit 959b029

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

app/services/location/jhu.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ def get_category(category):
5252
# URL to request data from.
5353
url = base_url + "time_series_covid19_%s_global.csv" % category
5454

55-
# Different URL is needed for recoveries.
56-
# Read about deprecation here: https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series.
57-
if category == "recovered":
58-
url = base_url + "time_series_19-covid-Recovered.csv"
59-
6055
# Request the data
6156
request = requests.get(url)
6257
text = request.text

tests/example_data/time_series_19-covid-Recovered.csv renamed to tests/example_data/time_series_covid19_recovered_global.csv

File renamed without changes.

tests/test_jhu.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ def read_file(self, state):
3333
# Determine filepath.
3434
filepath = "tests/example_data/{}.csv".format(state)
3535

36-
if state == "recovered":
37-
filepath = "tests/example_data/time_series_19-covid-Recovered.csv"
38-
3936
# Return fake response.
4037
print("Try to read {}".format(filepath))
4138
with open(filepath, "r") as file:

0 commit comments

Comments
 (0)