Update manager #23

Merged
Miroslavsckaya merged 20 commits from feature_rss_update into master 2022-07-08 19:23:12 +00:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 42de1efed1 - Show all commits

5
rss.py
View file

@ -6,7 +6,10 @@ class FeedItem:
self.url = item.get('link', '')
self.title = item.get('title', '')
self.description = item.get('summary', '')
self.date = item.get('published', '')
if 'published' in item:
self.date = item.published_parsed()
else:
self.date = ''
class Feed:
def __init__(self, url: str, feed: FeedParserDict) -> None:

View file

@ -123,7 +123,8 @@ class Notifier:
def __format_message(item: FeedItem) -> str:
return (
f"<strong><a href=\"{item.url}\">{item.title}</a></strong>\n\n"
f"{item.description}"
f"{item.description}\n"
f"{item.date}"
)