From 46a33178f62926e09182228e0d2a76e2174fcf51 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 29 Oct 2025 23:35:12 -0700 Subject: [PATCH] Update rss.py --- modules/rss.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/rss.py b/modules/rss.py index b268a21..5cf0c90 100644 --- a/modules/rss.py +++ b/modules/rss.py @@ -141,6 +141,9 @@ def get_rss_feed(msg): def get_newsAPI(user_search="meshtastic"): # Fetch news from NewsAPI.org user_search = user_search.lower().replace("latest ", "", 1).strip() + # if seach term is empty, use default + if not user_search: + user_search = "meshtastic" try: headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome'} last_week = datetime.datetime.now() - datetime.timedelta(days=7)