Skip to content

Commit 1ad8c17

Browse files
committed
Stats fix
1 parent 9ea2d0f commit 1ad8c17

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cron/data-providers/baselab.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = async function () {
3434
rows.forEach(row => {
3535
const country = row.querySelector('th').innerText
3636
const d = row.querySelectorAll('td')
37-
const r = [country, n(d[0].innerText), n(d[2].innerText), n(d[3].innerText), n(d[5].innerText), percents(d[6].innerText), percents(d[7].innerText)]
37+
const r = [country, n(d[0].innerText), n(d[1].innerText), n(d[4].innerText), n(d[5].innerText), percents(d[6].innerText), percents(d[7].innerText)]
3838
res.push(r)
3939
})
4040
return res
@@ -47,7 +47,8 @@ module.exports = async function () {
4747
deaths: totalRow[3],
4848
recovered: totalRow[4],
4949
mortalityRate: totalRow[5],
50-
revoveryRate: totalRow[6]
50+
revoveryRate: totalRow[6],
51+
recoveryRate: totalRow[6]
5152
}
5253

5354
for (const row of data) {
@@ -58,7 +59,8 @@ module.exports = async function () {
5859
deaths: row[3],
5960
recovered: row[4],
6061
mortalityRate: row[5],
61-
revoveryRate: row[6]
62+
revoveryRate: row[6],
63+
recoveryRate: row[6]
6264
}
6365
}
6466
const state = {

0 commit comments

Comments
 (0)