Skip to content

Commit

Permalink
Add from_notion
Browse files Browse the repository at this point in the history
  • Loading branch information
YouXam committed Jul 3, 2023
1 parent 5d17871 commit b9fb74f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ async def job():
except Exception as e:
logging.warning(e)


if page.get('url'):
front_matter['from_notion'] = page['url']
if_update = True

remote_author = await getAuthor(page)
if front_matter.get('author') != remote_author:
front_matter['author'] = remote_author
Expand Down

0 comments on commit b9fb74f

Please sign in to comment.