fix: curr news should not be list
@@ -311,7 +311,7 @@ def respond():
response = OFFER_BREAKING_NEWS
confidence = LINKTO_FOR_LONG_RESPONSE_CONFIDENCE
attr = {"news_status": OFFERED_BREAKING_NEWS_STATUS, "news_topic": "all",
- "can_continue": CAN_CONTINUE, "curr_news": prev_news_samples_urls[i]}
+ "can_continue": CAN_CONTINUE, "curr_news": prev_news_samples_urls[i][-1]}
if attr["curr_news"] not in human_attr["news_skill"]["discussed_news"]:
human_attr["news_skill"]["discussed_news"] += [attr["curr_news"]["url"]]
else:
@@ -444,7 +444,7 @@ def respond():
response = f"Sorry, I could not find some specific news. {OFFER_BREAKING_NEWS}"
confidence = NOT_SPECIFIC_NEWS_OFFER_CONFIDENCE
attr = {"news_status": OFFERED_BREAKING_NEWS_STATUS, "news_topic": "all",
- "can_continue": CAN_CONTINUE, "curr_news": prev_news_samples_urls[i]}
+ "can_continue": CAN_CONTINUE, "curr_news": prev_news_samples_urls[i][-1]}
if attr["curr_news"] not in human_attr["news_skill"]["discussed_news"]:
human_attr["news_skill"]["discussed_news"] += [attr["curr_news"]["url"]]
else:
