Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
GandalFran committed Dec 18, 2020
1 parent 415468e commit aec0090
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions soa-api/src/soa/models/covid_model_eu.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,12 @@ def _format_response(self, response:list) -> list:

transform_country = lambda x: ' '.join(x.split('_')).replace('(',' ').replace(')',' ')

print(response)
return [{
'date': r['dateRep'].isoformat(),
'country': transform_country(r['countriesAndTerritories']),
'cases': r['cases'],
'cases': r['deaths']
'cases': r['cases_weekly'],
'cases': r['deaths_weekly']
} for r in response]

def extract(self, from_date=None, to_date=None):
Expand Down

0 comments on commit aec0090

Please sign in to comment.