mirror of
https://github.com/Death916/deathclock.git
synced 2026-04-10 03:04:40 -07:00
news formatting
This commit is contained in:
parent
16b3ce3c43
commit
28bd2c6078
2 changed files with 6 additions and 2 deletions
|
|
@ -219,8 +219,10 @@ class State(rx.State):
|
|||
)
|
||||
await asyncio.sleep(WEATHER_FETCH_INTERVAL)
|
||||
continue
|
||||
|
||||
logging.info("deleting existing weather screenshot...")
|
||||
self._weather_client.delete_old_screenshots(self.weather_img)
|
||||
logging.info("Attempting to fetch weather screenshot...")
|
||||
|
||||
img_web_path = self._weather_client.get_weather_screenshot()
|
||||
|
||||
if img_web_path:
|
||||
|
|
@ -407,6 +409,8 @@ def index() -> rx.Component:
|
|||
rx.cond(
|
||||
State.news,
|
||||
rx.text(
|
||||
rx.heading(State.news[State.current_news_index]["source"]),
|
||||
rx.spacer(),
|
||||
State.news[State.current_news_index]["title"],
|
||||
rx.spacer(),
|
||||
State.news[State.current_news_index]["publish_date"],
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
http://feeds.bbci.co.uk/news/rss.xml
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue