Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 30, 2021. It is now read-only.

Commit 8a61152

Browse files
committed
fix: hospitalization data for FR (should be current)
1 parent 8f356e4 commit 8a61152

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/shared/scrapers/FR/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ const scraper = {
8484
// Store today's number to calculate formula above
8585
todayHospitalized: parse.number(item.hosp),
8686
// Sum number of new hospitalization
87-
hospitalized: prev.hospitalized + newHospitalized,
87+
hospitalized_current: prev.hospitalized + newHospitalized,
8888
deaths: parse.number(item.dc),
8989
discharged: parse.number(item.rad)
9090
};
9191
} else {
9292
// First day with info for this departement
9393
hospitalizedByDepartments[item.dep] = {
9494
todayHospitalized: parse.number(item.hosp),
95-
hospitalized: parse.number(item.hosp),
95+
hospitalized_current: parse.number(item.hosp),
9696
deaths: parse.number(item.dc),
9797
discharged: parse.number(item.rad)
9898
};

0 commit comments

Comments
 (0)