aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-01-02 15:11:01 -0800
committerPinapelz <yukais@pinapelz.com>2026-01-02 15:11:01 -0800
commitb056052df1800ea842cbe93d54789d913c305c91 (patch)
tree252b6d6a41b734d0a5a76092f3e3a144cf2f4956
parent408557e5b5c996c59689984714ed138a5e467b43 (diff)
fix: assume no ai summary if key does not exist
-rw-r--r--rasis.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/rasis.py b/rasis.py
index 2275cd1..a88e936 100644
--- a/rasis.py
+++ b/rasis.py
@@ -95,8 +95,7 @@ def generate_post_content(post_data: dict) -> str:
return None
content = f"📰 {game} - {post_data['date']}\n\n"
-
- if post_data["is_ai_summary"]:
+ if "is_ai_summary" in post_data and post_data["is_ai_summary"]:
content += "The information below is written by AI / 上記の情報はAIによって生成されました。\n\n"
if post_data["type"] is not None:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage