From bd650f563a07b7d0d5941ca080b5a9247aaa01ab Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 13 Jul 2025 12:22:04 -0700 Subject: allow for message content consideration for summarizations --- community/wacca_plus/wacca_plus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'community/wacca_plus') 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, -- cgit v1.2.3