aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-07-13 12:22:04 -0700
committerPinapelz <yukais@pinapelz.com>2025-07-13 12:22:04 -0700
commitbd650f563a07b7d0d5941ca080b5a9247aaa01ab (patch)
treee9d11d293faaa53fee18496805cfc1345827f0b2 /community
parent8ddd5b16b20db12fc1e7ecbf235802e9fd49b4d0 (diff)
allow for message content consideration for summarizations
Diffstat (limited to 'community')
-rw-r--r--community/wacca_plus/wacca_plus.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/community/wacca_plus/wacca_plus.py b/community/wacca_plus/wacca_plus.py
index fae3dd0..067df9f 100644
--- a/community/wacca_plus/wacca_plus.py
+++ b/community/wacca_plus/wacca_plus.py
@@ -92,6 +92,7 @@ def parse_announcement_messages(message_json: dict):
cache = _load_cache()
for message in message_json:
type = None
+ message_content = message.get("content", "")
if len(message["attachments"]) == 0:
continue
image_attachments = []
@@ -122,7 +123,7 @@ def parse_announcement_messages(message_json: dict):
date = message["timestamp"].split("T")[0]
date_obj = datetime.strptime(date, "%Y-%m-%d")
unix_time = int(time.mktime(date_obj.timetuple()))
- headline, content = generate_headline_and_content_from_images(image_urls, "WACCA PLUS")
+ headline, content = generate_headline_and_content_from_images(image_urls, "WACCA PLUS", message_content)
news_posts.append({
"date": date,
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage