Skip to content

Commit

Permalink
Update config template
Browse files Browse the repository at this point in the history
  • Loading branch information
9dogs committed Apr 9, 2023
1 parent 716db82 commit 97f689f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion notion_sync_addon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ def _sync(self) -> None:
assert self.notion_menu # mypy
self.notion_menu.setTitle('Notion (syncing...)')
for page_spec in self.config.get('notion_pages', []):
page_id, recursive = page_spec['page_id'], page_spec['recursive']
page_id = page_spec['page_id']
recursive = page_spec.get('recursive', False)
page_id = normalize_block_id(page_id)
worker = NotesExtractorWorker(
notion_token=self.config['notion_token'],
Expand Down
2 changes: 1 addition & 1 deletion notion_sync_addon/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"anki_target_deck": "Notion Sync",
"notion_token": "",
"notion_namespace": "",
"notion_pages": []
"notion_pages": [{"page_id": "ID", "recursive": true}]
}

0 comments on commit 97f689f

Please sign in to comment.