-
Notifications
You must be signed in to change notification settings - Fork 393
Remove undefined timenow in 001-004-flask-intro
#41
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
Conversation
This is to fix "NameError: name 'timenow' is not defined"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, please see my comment with suggested change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch, thanks @serixscorpio.
Rather than deleting the variable could you actually set the time (datetime.now() I guess), because I see this in the program/templates/index.html template when I fork the repo: <h1>Hello! The current date is {{ time }}</h1> (and the related video might show the same). Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I didn't notice time is used. Fixed in 511d080
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
I came across the following error when I was playing around with the code. Not sure if this error is by design.
This is to fix "NameError: name 'timenow' is not defined".