covid icon indicating copy to clipboard operation
covid copied to clipboard

example.py does not run well and the time format of last_update seems have 3 more zeros

Open kwccoin opened this issue 2 years ago • 5 comments

The recovered does not exist in one and the country by id not exist in the others. Hence the example.py does not run well. My possible solution below.

Still what is the time format of the field " 'last_update': 1678454462000 "? Not sure how to resolve this.

kwccoin avatar Oct 08 '23 04:10 kwccoin

See attachment example_covid.txt

kwccoin avatar Oct 08 '23 04:10 kwccoin

For the time part I think the last 3 000 is extra (not sure how it is being generated)

` timestamp = date.fromtimestamp(1678454462) #000) print(timestamp) # 2023-03-10 date_time = datetime.fromtimestamp(1678454462) #000) print("Datetime from timestamp:", date_time) # 2023-03-10 21:21:02 print("This align with the message - This repository has been archived by the owner on Mar 10, 2023. It is now read-only. -")

`

kwccoin avatar Oct 08 '23 08:10 kwccoin

Sorry for the delay, I will investigate

nf1s avatar Nov 27 '23 13:11 nf1s

@kwccoin: Which source are you using? John Hopkings or worldometers?

nf1s avatar Dec 09 '23 10:12 nf1s

It is John Hopkings, yes it should be archived

nf1s avatar Jul 19 '24 23:07 nf1s