-
Notifications
You must be signed in to change notification settings - Fork 86
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
Event default timestamp #24
Event default timestamp #24
Conversation
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.
LGTM apart from the nit
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
Wow. I had never seen that solution. That’s going to save me a lot of text in my other work. Thanks :) Also I wasn’t sure how to link it here, but this request will close issue 23. |
I'm not clear on why this change is needed. I think having the If you want to use a custom time, you can do something similar to my suggestion in #23 |
I also left a comment on #23, but wanted to leave one here to make sure it is clear. I agree that using the current time as a default is the most logical approach, but I don't think the current implementation behaves as expected - I see this PR as a bug fix as opposed to a new feature. |
Thanks, I was able to reproduce the bug. LGTM |
@armstrys Can you add a follow-up update to document in the test what the test is addressing? In general, each test should explain itself ( |
Also I think a better test approach would be to create two |
Thanks for the feedback - That makes sense to me. Working on an update with both of those changes. Relatively new to contributions... can I push that update back up to this pull request or do I need to open a new one? |
New PR. But reference this one in the PR notes. If you write |
Okay, new PR is up and this all is making more sense. Thanks to both of you for your patience and help! |
Changed the
Event
default value forcreated_at
toNone
and set time stamp within__init__
. Also added a test file for events.