- 
                Notifications
    You must be signed in to change notification settings 
- Fork 477
Introduce NotionReminder for Notion Collections #49
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
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.
Awesome, thanks for the contribution, and sorry for the slow response! Just a couple small things, and a question.
        
          
                notion/collection.py
              
                Outdated
          
        
      | if not val: | ||
| val = "" | ||
| if not isinstance(val, str): | ||
| if not isinstance(val, (str,list)): | 
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.
Nit: space after commas (but I'll do a pass with black after which will clean things up).
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.
Also, I totally forgot that you can pass a tuple of types to isinstance -- nice!
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.
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?
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.
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']]]
776d48b    to
    31a8420      
    Compare
  
    | 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. | 
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.