Skip to content

Commit

Permalink
add us daily data so templates can use it
Browse files Browse the repository at this point in the history
  • Loading branch information
webmasterkai committed Mar 15, 2020
1 parent 46185c7 commit cf6d76f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _src/_data/sheets.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ module.exports = function() {
getJson('https://covid.cape.io/states'),
getJson('https://covid.cape.io/states/info'),
getJson('https://covid.cape.io/us'),
]).then(([stateTest, stateInfo, us]) => ({
getJson('https://covid.cape.io/us/daily'),
]).then(([stateTest, stateInfo, us, usDaily]) => ({
updated: dateStr(new Date()),
us: us[0],
states: mergeStateInfo([stateTest, stateInfo]),
usDaily: _.orderBy(['date'], ['desc'], usDaily),
}))
}

0 comments on commit cf6d76f

Please sign in to comment.