disease-sh / API

API for Current cases and more stuff about COVID-19 and Influenza
https://disease.sh
GNU General Public License v3.0
2.46k stars 639 forks source link

Updated attribute the same for every country #286

Closed MarkSmit closed 4 years ago

MarkSmit commented 4 years ago

Wouldn't it be more helpful/useful to have the updated attribute actually reflect the last time the numbers of the country were updated? Now the updated attribute is just almost (just a few ms difference) the same for every country.

buster95 commented 4 years ago

excellent observation, we haven't information about that by country, we only take server date information, I think should will remove that field for that endpoint is the same for all, has no sense

S1MB10T3 commented 4 years ago

If anything you can update the attribute if the data from an country has changed. Definitively a lot more resource intensive.

ebwinters commented 4 years ago

I don't get it what are you requesting @MarkSmit

ebwinters commented 4 years ago

closin for now

MarkSmit commented 4 years ago

The updated attribute in /countries Is the same for every country. It would be way more useful if it would give the actual time that the numbers of that country have been updated. For example, if Italy has not yet updated their numbers today, the updated attribute could display the time it was updated yesterday. And if Spain has updated its numbers than the updated attribute should reflect the moment that happened. That way the user of the API could show it’s users how recent the numbers are.

ghost commented 4 years ago

@MarkSmit the number is the time the data was pulled from worldometers.

MarkSmit commented 4 years ago

@EliteDaMyth yeah, I know. But it should be the actual time that the numbers where updated. If a country has not updated today and the updated attribute says that it was updated 1 minute ago, than that is actually incorrect.

MarkSmit commented 4 years ago

@ebwinters could you please reopen this issue? if you need more information, please let me know.