Skip to content

Commit 21aef98

Browse files
committed
Fix root_url query string issue #9
1 parent bbbc255 commit 21aef98

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gkeep2notion.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def parseList(list: node.List, page: Page):
342342

343343
def url2uuid(url: str) -> str:
344344
"""Extract UUID part from the notion URL"""
345-
m = re.match(r'^https://(www\.)?notion.so/(.+)([0-9a-f]{32})/?$', url)
345+
m = re.match(r'^https://(www\.)?notion.so/(.+)([0-9a-f]{32})', url)
346346
if not m:
347347
return ''
348348
id = m[3]
@@ -361,6 +361,10 @@ def url2uuid(url: str) -> str:
361361

362362
root_uuid = url2uuid(config.root_url)
363363

364+
print(config.root_url, root_uuid)
365+
366+
quit()
367+
364368
keep = Keep()
365369
login(keep, config.email)
366370

0 commit comments

Comments
 (0)