Closed AuroPick closed 4 years ago
Good afternoon @AuroPick
I just checked and you're right, from what I see China is appearing in the second array of the table property table: [ [Array], [Array] ]
_The first array is the data for today and the second is for the data from the previous day._
It should be a bug or something, because it previously appeared in both arrays. 🤔
const f = async() =>{
const data = await api.getReports();
return Promise.all(data[0])
}
f()
.then(res =>{
console.log(res)
});
[
{
cases: 657521,
deaths: 30428,
recovered: 141419,
active_cases: [ [Object] ],
closed_cases: [ [Object] ],
table: [ [Array], [Array] ]
}
]
@AuroPick
Eventually I will be checking the code.
Also, I noticed now that two new columns Deaths / 1M pop
and 1stcase
were added to the worldometers website. So I will have to correct both keys since one has space and the other has a number, and it is impossible for the dev to take the values.
If time permits, tomorrow I would have the changes.
@AuroPick ,
I was checking carefully, and yes, it shows the China data for both array.
What happens is that for some reason the data from China is appearing in the JSON almost at the end ..
You can verify it by doing a .filter(doc => doc.Country)
and you will see that it is available.
I was trying take first 10 country. I tried this
but there wasn't china in the output output: