Skip to content

Commit be2aee3

Browse files
authored
Merge pull request #159 from ExpDev07/mismatch-hotfix
hotfix for location mismatch data
2 parents 116d603 + 87a54cc commit be2aee3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/services/location/jhu.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def get_locations():
116116
# Get all of the data categories locations.
117117
confirmed = get_category('confirmed')['locations']
118118
deaths = get_category('deaths')['locations']
119-
recovered = get_category('recovered')['locations']
119+
# recovered = get_category('recovered')['locations']
120120

121121
# Final locations to return.
122122
locations = []
@@ -127,7 +127,7 @@ def get_locations():
127127
timelines = {
128128
'confirmed' : confirmed[index]['history'],
129129
'deaths' : deaths[index]['history'],
130-
'recovered' : recovered[index]['history'],
130+
# 'recovered' : recovered[index]['history'],
131131
}
132132

133133
# Grab coordinates.
@@ -151,7 +151,7 @@ def get_locations():
151151
{
152152
'confirmed': Timeline({ datetime.strptime(date, '%m/%d/%y').isoformat() + 'Z': amount for date, amount in timelines['confirmed'].items() }),
153153
'deaths' : Timeline({ datetime.strptime(date, '%m/%d/%y').isoformat() + 'Z': amount for date, amount in timelines['deaths'].items() }),
154-
'recovered': Timeline({ datetime.strptime(date, '%m/%d/%y').isoformat() + 'Z': amount for date, amount in timelines['recovered'].items() })
154+
'recovered': Timeline({})
155155
}
156156
))
157157

tests/test_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_v2_latest(self, mock_request_get, mock_datetime):
8686
'latest': {
8787
'confirmed': 1940,
8888
'deaths': 1940,
89-
'recovered': 1940
89+
'recovered': 0
9090
}
9191
}
9292

0 commit comments

Comments
 (0)