Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions app/services/location/jhu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions tests/test_jhu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down