Commit dcd5f0d
committed
Fix parsing the vaccination data
The code apparently broke when a new column was added to the CSV
data to show the number of boosters. This field is blank in the US
data, so the code would crash trying to turn the empty string into an
integer.
Since upstream seems to add columns at the far right (a sensible
choice) we should index using positive numbers instead.
This also changes the code so that in the event of a failure it actually
*DOES* retry. I designed it to wait for 1 hour in deep sleep before retrying,
so that it doesn't immediately run down the battery in case of transient
errors.1 parent c7471f8 commit dcd5f0d
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | 77 | | |
80 | 78 | | |
81 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
0 commit comments