Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kwccoin opened this issue Oct 8, 2023 · 5 comments

Comments

@kwccoin
Copy link

kwccoin commented Oct 8, 2023

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 kwccoin changed the title example.py does not run well example.py does not run well and what is the time format of last_update Oct 8, 2023
@kwccoin
Copy link
Author

kwccoin commented Oct 8, 2023

See attachment
example_covid.txt

@kwccoin
Copy link
Author

kwccoin commented Oct 8, 2023

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 kwccoin changed the title example.py does not run well and what is the time format of last_update example.py does not run well and the time format of last_update seems have 3 more zeros Oct 8, 2023
@nf1s
Copy link
Owner

nf1s commented Nov 27, 2023

Sorry for the delay, I will investigate

@nf1s
Copy link
Owner

nf1s commented Dec 9, 2023

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

@nf1s
Copy link
Owner

nf1s commented Jul 19, 2024

It is John Hopkings, yes it should be archived

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants