Skip to content
Merged
Changes from 1 commit
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
Next Next commit
hotfix
  • Loading branch information
ExpDev07 committed Mar 24, 2020
commit 63804be667f511d4d43c1abe470f95ce72dafe41
6 changes: 3 additions & 3 deletions app/services/location/jhu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand All @@ -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.
Expand All @@ -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({})
}
))

Expand Down