File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def get_file():
8080 print ("OUT_FOLDER does not exist." )
8181 return None
8282
83-
83+ HEATMAP_GUIDE = "https://mp.weixin.qq.com/s?__biz=MzI1OTcxOTI4NA==&mid=2247484145&idx=1&sn=81752852420b9153fc292b7873217651&chksm=ea75ebeadd0262fc65df100370d3f983ba2e52e2fcde2deb1ed49343fbb10645a77570656728&token=157143379&lang=zh_CN#rd"
8484if __name__ == "__main__" :
8585 notion_helper = NotionHelper ()
8686 weread_api = WeReadApi ()
@@ -93,9 +93,9 @@ def get_file():
9393 block_id = notion_helper .heatmap_block_id , url = heatmap_url
9494 )
9595 else :
96- response = notion_helper . append_blocks (
97- block_id = notion_helper . page_id , children = [ get_embed ( heatmap_url )]
98- )
96+ print ( f"更新热力图失败,没有添加热力图占位。具体参考: { HEATMAP_GUIDE } " )
97+ else :
98+ print ( f"更新热力图失败,没有生成热力图。具体参考: { HEATMAP_GUIDE } " )
9999 api_data = weread_api .get_api_data ()
100100 readTimes = {int (key ): value for key , value in api_data .get ("readTimes" ).items ()}
101101 now = pendulum .now ("Asia/Shanghai" ).start_of ("day" )
You can’t perform that action at this time.
0 commit comments