Skip to content

Commit 746817c

Browse files
committed
add [2025年终总结 - 姓王者的博客]
close #4
1 parent 4866260 commit 746817c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"""
2222

2323
metadata_file = "metadata.csv"
24-
lines = []
24+
lines = set()
2525

2626
def escape(text: str) -> str:
2727
return text.replace('|', '\\|')
@@ -39,7 +39,7 @@ def escape(text: str) -> str:
3939
assert "|" not in archive_url, f"Archive URL should not contain '|', but got: {archive_url}"
4040
assert ")" not in archive_url, f"Archive URL should not contain ')', but got: {archive_url}"
4141
line = f'| [{escape(article_name)} - {escape(blog)}]({article_url}) | {blog_id or "Null"} | {"[IA]" if "archive.org" in archive_url else "[Other]" if archive_url else "Null"}{f"({archive_url})" if archive_url else ""} |'
42-
lines.append(line)
42+
lines.add(line)
4343

4444
with open('README.md', 'w') as f:
4545
f.write(markdown+'计数: '+str(len(lines))+' 篇。下表每次 CI 乱序输出。\n\n')

metadata.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ article_name,article_url,blog,blog_id,archive_url
22
追寻自我的 2025,https://imba97.com/archives/810/,怠惰のコエ - imba久期,1585,http://web.archive.org/web/20260222025929/https://imba97.com/archives/810/
33
站在2025的尾巴上:回顾、感恩与前行,https://www.iliuqi.com/archives/life-review-2025,云栖梦泽,,http://web.archive.org/web/20260222031310/https://www.iliuqi.com/archives/life-review-2025
44
2025,https://ezraknotlab.github.io/post/2025/,EzraKnotLab,,http://web.archive.org/web/20260222041510/https://ezraknotlab.github.io/post/2025/
5+
2025年终总结,https://xingwangzhe.fun/posts/cbab25fa,姓王者的博客,,http://web.archive.org/web/20260222041754/https://xingwangzhe.fun/posts/cbab25fa/

0 commit comments

Comments
 (0)