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

Commit 32dc400

Browse files
committed
Fix doses per day import per upstream changes
Issue: #35
1 parent ed09c3b commit 32dc400

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

data/doses-per-day.csv

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
date,initialDoses,finalDoses,totalDoses
22
2020-12-26,0,0,0
3-
2020-12-27,NaN,,24085
4-
2020-12-28,NaN,,18518
5-
2020-12-29,NaN,,50128
6-
2020-12-30,NaN,,62906
7-
2020-12-31,NaN,,50050
8-
2021-01-01,NaN,,18924
9-
2021-01-02,NaN,,52261
10-
2021-01-03,NaN,,23891
11-
2021-01-04,NaN,,48121
12-
2021-01-05,NaN,,53738
13-
2021-01-06,NaN,,62648
14-
2021-01-07,NaN,,56070
15-
2021-01-08,NaN,,62713
16-
2021-01-09,NaN,,61382
17-
2021-01-10,NaN,,35501
18-
2021-01-11,NaN,,67546
19-
2021-01-12,NaN,,82949
20-
2021-01-13,NaN,,111662
21-
2021-01-14,NaN,,83042
3+
2020-12-27,24085,0,24085
4+
2020-12-28,18518,0,18518
5+
2020-12-29,50128,0,50128
6+
2020-12-30,62906,0,62906
7+
2020-12-31,50050,0,50050
8+
2021-01-01,18924,0,18924
9+
2021-01-02,52261,0,52261
10+
2021-01-03,23891,0,23891
11+
2021-01-04,48121,0,48121
12+
2021-01-05,53738,0,53738
13+
2021-01-06,62648,0,62648
14+
2021-01-07,56070,0,56070
15+
2021-01-08,62713,0,62713
16+
2021-01-09,61382,0,61382
17+
2021-01-10,35501,0,35501
18+
2021-01-11,67546,0,67546
19+
2021-01-12,82949,0,82949
20+
2021-01-13,111662,0,111662
21+
2021-01-14,83042,0,83042
2222
2021-01-15,91029,610,91639
2323
2021-01-16,56700,906,57606
2424
2021-01-17,31674,17360,49034

index.html

+1-1
Large diffs are not rendered by default.

process-xlsx.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ const readDosesPerDayData = async () => {
311311
const dosesPerDayData = (await readDosesPerDayData()).map((entry) => {
312312
// J&J doses are included in both reported metrics. Let’s fix that
313313
// by computing the usual “initialDoses” vs. “finalDoses” instead.
314-
const {atleastPartiallyVaccinated, fullyVaccinated, totalDoses} = entry;
314+
const {atleastPartiallyVaccinated, totalDoses} = entry;
315+
const fullyVaccinated = entry.fullyVaccinated || 0;
315316
const johnsonDoses = atleastPartiallyVaccinated + fullyVaccinated - totalDoses;
316317
return {
317318
date: entry.date,

0 commit comments

Comments
 (0)