From eafc6f0fe522e40bd43051cdd2b99f045dd3bbcd Mon Sep 17 00:00:00 2001 From: Benature Date: Mon, 23 Nov 2026 22:27:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E5=91=A8=E6=8A=A5=20t?= =?UTF-8?q?ype=20=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- snooper_weekly.py | 1 - tests/test_weekly.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index abd4105..3a4036f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.4 +0.2.5 diff --git a/snooper_weekly.py b/snooper_weekly.py index 9d10cb1..0ebbcc7 100644 --- a/snooper_weekly.py +++ b/snooper_weekly.py @@ -207,7 +207,6 @@ def generate_weekly( properties = { "version": get_version(), "model": model.rsplit("/", 1)[-1], - "type": "weekly", "is_read": False, } if previous_weekly is None: diff --git a/tests/test_weekly.py b/tests/test_weekly.py index c0d6ead..7813320 100644 --- a/tests/test_weekly.py +++ b/tests/test_weekly.py @@ -80,7 +80,7 @@ def test_generate_weekly_reads_previous_week_and_sanitizes_links( text = output.read_text(encoding="utf-8") assert "[[审核群|指数内容部落]]" in text - assert "type: weekly" in text + assert "type: weekly" not in text assert "date:" not in text assert "上周合成周记" in clients[0].prompts[-1]