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

Improved how last.txt is handled #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Improved how last.txt is handled #12

wants to merge 2 commits into from

Conversation

julienc91
Copy link
Contributor

Currently, last.txt is created on the first run, but the script doesn't do anything else on this first time.

With my PR, if last.txt does not exist, or if its content is invalid (issue #4), the current timestamp is used instead. Consequently, there is no need to run the script twice on the first run anymore.

I also applied flake8 on the code to clean it up against pep8 rules, and reorganized a little bit the code into functions for better readability.

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

Successfully merging this pull request may close these issues.

1 participant