diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-07-13 12:22:04 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-07-13 12:22:04 -0700 |
| commit | bd650f563a07b7d0d5941ca080b5a9247aaa01ab (patch) | |
| tree | e9d11d293faaa53fee18496805cfc1345827f0b2 /community | |
| parent | 8ddd5b16b20db12fc1e7ecbf235802e9fd49b4d0 (diff) | |
allow for message content consideration for summarizations
Diffstat (limited to 'community')
| -rw-r--r-- | community/wacca_plus/wacca_plus.py | 3 |
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, |
