diff --git a/scripts/__pycache__/config.cpython-311.pyc b/scripts/__pycache__/config.cpython-311.pyc index c86661ea6f5d..b9d399b3cb3f 100644 Binary files a/scripts/__pycache__/config.cpython-311.pyc and b/scripts/__pycache__/config.cpython-311.pyc differ diff --git a/scripts/__pycache__/notion_helper.cpython-311.pyc b/scripts/__pycache__/notion_helper.cpython-311.pyc index aa3f1d03a6c0..0f91f8893a80 100644 Binary files a/scripts/__pycache__/notion_helper.cpython-311.pyc and b/scripts/__pycache__/notion_helper.cpython-311.pyc differ diff --git a/scripts/__pycache__/utils.cpython-311.pyc b/scripts/__pycache__/utils.cpython-311.pyc index 30860e3d6292..4dae1d4ece9b 100644 Binary files a/scripts/__pycache__/utils.cpython-311.pyc and b/scripts/__pycache__/utils.cpython-311.pyc differ diff --git a/scripts/book.py b/scripts/book.py index c76143bc63a3..64ed22b1bc22 100644 --- a/scripts/book.py +++ b/scripts/book.py @@ -1,6 +1,4 @@ import argparse -import hashlib -import json import os import pendulum @@ -120,10 +118,10 @@ def insert_book_to_notion(books, index, bookId): for x in book.get("categories") ] properties = utils.get_properties(book, book_properties_type_dict) - if book.get("date"): + if book.get("时间"): notion_helper.get_date_relation( properties, - pendulum.from_timestamp(book.get("date"), tz="Asia/Shanghai"), + pendulum.from_timestamp(book.get("时间"), tz="Asia/Shanghai"), ) print(f"正在插入《{book.get('title')}》,一共{len(books)}本,当前是第{index+1}本。") diff --git a/scripts/weread.py b/scripts/weread.py index 87820d03b2fd..ab00c9f9dfd4 100644 --- a/scripts/weread.py +++ b/scripts/weread.py @@ -265,7 +265,7 @@ def append_blocks_to_notion(id, blocks, after, contents): if sort == notion_books.get(bookId).get("Sort"): continue pageId = notion_books.get(bookId).get("pageId") - print(f"正在同步《{title}》,一共{len(books)}本,当前是第{index+1}本。{pageId}") + print(f"正在同步《{title}》,一共{len(books)}本,当前是第{index+1}本。") chapter = weread_api.get_chapter_info(bookId) bookmark_list = get_bookmark_list(pageId, bookId) reviews = get_review_list(pageId,bookId)