-
Notifications
You must be signed in to change notification settings - Fork 35
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
Removed Dates and Update Status for Continuous Journal #1091
Conversation
Hey @amritpurshotam would you mind reviewing this PR please? |
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.
Nice work @shreyalpandit !. Just some small changes to clean up the Event construction and some optional changes for each of the @property
fields. Otherwise looks good :)
def check_open(open, close): | ||
now = datetime.now() | ||
if open and close: | ||
return now >= open and now < close | ||
elif open: | ||
return now >= open | ||
elif close: | ||
return now < close | ||
return True |
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.
I like this, much much cleaner than what I suggested!
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.
This looks really good, thanks for the updates!
Addresses Issue #1090 so that the continuous journal does not have a value for all dates except start date.