gemini fucks up yet again
Browse files
components/gateways/headlines_to_wa.py
CHANGED
@@ -37,7 +37,7 @@ TOPIC_DISPLAY_MAP = {
|
|
37 |
# UPDATED: To match the exact "NUSE DAILY" format and new item format
|
38 |
def fetch_cached_headlines() -> str:
|
39 |
try:
|
40 |
-
raw = redis_client.get("
|
41 |
if not raw:
|
42 |
logging.warning("⚠️ No detailed news headlines found in cache.")
|
43 |
return "⚠️ No daily headlines found in cache."
|
@@ -67,8 +67,8 @@ def fetch_cached_headlines() -> str:
|
|
67 |
|
68 |
for ref_id in sorted_story_ids:
|
69 |
item = stories_for_topic[ref_id]
|
70 |
-
summary = item.get("
|
71 |
-
description = item.get("
|
72 |
|
73 |
# <<< UPDATED: Item format to "1. <summary> - <explanation>" >>>
|
74 |
# Using U+2007 (Figure Space) for alignment
|
|
|
37 |
# UPDATED: To match the exact "NUSE DAILY" format and new item format
|
38 |
def fetch_cached_headlines() -> str:
|
39 |
try:
|
40 |
+
raw = redis_client.get("daily_news_feed_cache")
|
41 |
if not raw:
|
42 |
logging.warning("⚠️ No detailed news headlines found in cache.")
|
43 |
return "⚠️ No daily headlines found in cache."
|
|
|
67 |
|
68 |
for ref_id in sorted_story_ids:
|
69 |
item = stories_for_topic[ref_id]
|
70 |
+
summary = item.get("summary", "")
|
71 |
+
description = item.get("explanation", "")
|
72 |
|
73 |
# <<< UPDATED: Item format to "1. <summary> - <explanation>" >>>
|
74 |
# Using U+2007 (Figure Space) for alignment
|