news formatting

This commit is contained in:
death916 2025-12-11 03:00:53 -08:00
parent 16b3ce3c43
commit 28bd2c6078
2 changed files with 6 additions and 2 deletions

View file

@ -219,8 +219,10 @@ class State(rx.State):
) )
await asyncio.sleep(WEATHER_FETCH_INTERVAL) await asyncio.sleep(WEATHER_FETCH_INTERVAL)
continue continue
logging.info("deleting existing weather screenshot...")
self._weather_client.delete_old_screenshots(self.weather_img)
logging.info("Attempting to fetch weather screenshot...") logging.info("Attempting to fetch weather screenshot...")
img_web_path = self._weather_client.get_weather_screenshot() img_web_path = self._weather_client.get_weather_screenshot()
if img_web_path: if img_web_path:
@ -407,6 +409,8 @@ def index() -> rx.Component:
rx.cond( rx.cond(
State.news, State.news,
rx.text( rx.text(
rx.heading(State.news[State.current_news_index]["source"]),
rx.spacer(),
State.news[State.current_news_index]["title"], State.news[State.current_news_index]["title"],
rx.spacer(), rx.spacer(),
State.news[State.current_news_index]["publish_date"], State.news[State.current_news_index]["publish_date"],

View file

@ -1,4 +1,4 @@
http://feeds.bbci.co.uk/news/rss.xml http://feeds.bbci.co.uk/news/rss.xml
http://feeds.feedburner.com/hiphopdx/news http://feeds.feedburner.com/hiphopdx/news
https://news.google.com/news?hl=en&gl=us&q=sacramento+bee&um=1&ie=UTF-8&output=rss https://www.kcra.com/topstories-rss
https://morss.it/https://feeds.npr.org/1001/rss.xml https://morss.it/https://feeds.npr.org/1001/rss.xml