Skip to content

Conversation

@xzavrel
Copy link

@xzavrel xzavrel commented Sep 4, 2019

This adds new NotionReminder class aligned with NotionDate so it's possible to create and parse reminders in Collections. I have added also very brief example.

Copy link
Owner

@jamalex jamalex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for the contribution, and sorry for the slow response! Just a couple small things, and a question.

if not val:
val = ""
if not isinstance(val, str):
if not isinstance(val, (str,list)):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: space after commas (but I'll do a pass with black after which will clean things up).

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I totally forgot that you can pass a tuple of types to isinstance -- nice!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you clarify the case in which we'd be passing in a list here, though? Is this for when you'd want to use the native/internal notion format externally?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same situation I didn'ŧ realize that I made pull request from master. Maybe I will do another pull request for this feature. But the main idea is, that I want to pass format that is not representable by markdown - e,g, text and backgroud colors, user mentions, dates etc. [text, ['h', color]], [' @' + client.get_user(user_id).full_name, [['b']]]

@jamalex
Copy link
Owner

jamalex commented Jan 25, 2021

Thanks again for the proposed changes! Ended up merging #239, a slightly simpler approach to handling reminders. Let me know if that doesn't work for your needs.

@jamalex jamalex closed this Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants