diff --git a/soa-api/src/soa/models/covid_model_eu.py b/soa-api/src/soa/models/covid_model_eu.py index ba39c54..70a0a29 100644 --- a/soa-api/src/soa/models/covid_model_eu.py +++ b/soa-api/src/soa/models/covid_model_eu.py @@ -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):