Skip to content

Commit

Permalink
优化notion
Browse files Browse the repository at this point in the history
  • Loading branch information
malinkang committed Feb 6, 2024
1 parent c7be234 commit e9c0de5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/douban_movie.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
runs-on: ubuntu-latest
env:
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
NOTION_PAGE: ${{ secrets.NOTION_PAGE }}
NOTION_MOVIE_URL: ${{ secrets.NOTION_MOVIE_URL }}
NOTION_BOOK_URL: ${{ secrets.NOTION_BOOK_URL }}
YEAR: ${{ vars.YEAR }}
REPOSITORY: ${{ github.repository }}
steps:
Expand Down
2 changes: 2 additions & 0 deletions scripts/douban.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ def insert_book():
type = options.type
is_movie = True if type=="movie" else False
notion_url = os.getenv("NOTION_MOVIE_URL") if is_movie else os.getenv("NOTION_BOOK_URL")
print(f"is_movie {is_movie}")
print(f"notion_url {notion_url}")
notion_helper = NotionHelper(notion_url)
douban_name = os.getenv("DOUBAN_NAME", None)
if is_movie:
Expand Down

0 comments on commit e9c0de5

Please sign in to comment.