Skip to content
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

SimpleCookie in Python breaks on curly brace #5

Closed
wrjlewis opened this issue Jan 4, 2023 · 1 comment
Closed

SimpleCookie in Python breaks on curly brace #5

wrjlewis opened this issue Jan 4, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@wrjlewis
Copy link
Owner

wrjlewis commented Jan 4, 2023

Fix with Regex below, to be added to the next release. Thanks to this forum user.

import re

# get notion_user_id from cookie
notion_user_id = re.search('notion_user_id=(.[^;]+);', cookie).group(1)

buildnotionrecentpagevisitsquery(notion_user_id), headers)
@wrjlewis wrjlewis added the bug Something isn't working label Jan 4, 2023
@wrjlewis wrjlewis self-assigned this Jan 4, 2023
wrjlewis added a commit to wrjlewis/notion-search-alfred-workflow that referenced this issue Jun 2, 2023
June updates

+ Support for Notion's new feature 'Projects', which broke how icons were displayed and subsequent results
+ if enableIcons is not selected, fixed a bug where the iconpath would be displayed inline with the results
+ Added ability to copy search result to clipboard, rather than open in the browser with CMD+Enter. wrjlewis/notion-search-alfred5-workflow#6
+ Fixed issue where braces would cause cookie parsing to fail, specifically when trying to load recently viewed pages. wrjlewis/notion-search-alfred5-workflow#5
@wrjlewis
Copy link
Owner Author

wrjlewis commented Jun 2, 2023

This is released now

@wrjlewis wrjlewis closed this as completed Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant