fix: 移除周报 type 属性

This commit is contained in:
Benature
2026-11-23 22:27:00 +08:00
parent f48ae4f809
commit eafc6f0fe5
3 changed files with 2 additions and 3 deletions

View File

@ -1 +1 @@
0.2.4 0.2.5

View File

@ -207,7 +207,6 @@ def generate_weekly(
properties = { properties = {
"version": get_version(), "version": get_version(),
"model": model.rsplit("/", 1)[-1], "model": model.rsplit("/", 1)[-1],
"type": "weekly",
"is_read": False, "is_read": False,
} }
if previous_weekly is None: if previous_weekly is None:

View File

@ -80,7 +80,7 @@ def test_generate_weekly_reads_previous_week_and_sanitizes_links(
text = output.read_text(encoding="utf-8") text = output.read_text(encoding="utf-8")
assert "[[审核群|指数内容部落]]" in text assert "[[审核群|指数内容部落]]" in text
assert "type: weekly" in text assert "type: weekly" not in text
assert "date:" not in text assert "date:" not in text
assert "上周合成周记" in clients[0].prompts[-1] assert "上周合成周记" in clients[0].prompts[-1]