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

Code simplifications and fixes #455

Merged
merged 2 commits into from Jan 16, 2017
Merged

Code simplifications and fixes #455

merged 2 commits into from Jan 16, 2017

Conversation

teward
Copy link
Member

@teward teward commented Jan 16, 2017

Code simplification 1: We don't need to use datetime.strftime(datetime.now(), ...) we can just call strftime from datetime.now() itself.

Code fix 2: Undefined variable reference, I don't think we actually reach that currently, but it could error out (and probably should be from GlobalVars)

This resolves a type mismatch risk, where datetime.strftime() is expecting a DATE, not a DATETIME object.  This may be IDE error, but it's also simpler to just refer to the specific datetime.now() object's strftime, rather than call in a separate strftime call.
@ArtOfCode- ArtOfCode- merged commit 8015b83 into master Jan 16, 2017
@teward teward deleted the code_simplifications branch January 16, 2017 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants