Fix date representation in FeedItem #38

Merged
Miroslavsckaya merged 5 commits from fix_date_in_FeedItem into master 2022-07-10 14:40:20 +00:00
Showing only changes of commit 7939babbe0 - Show all commits

View file

@ -1,7 +1,6 @@
import time
from bleach.sanitizer import Cleaner
from logging import Logger
from bleach.sanitizer import Cleaner
from telebot import TeleBot
from telebot.handler_backends import BaseMiddleware
from telebot.types import Message
@ -164,7 +163,6 @@ class Notifier:
def __format_message(self, item: FeedItem) -> str:
return (
# TODO: Return date when FeedItem starts to return formattable datetime object
f"<strong><a href=\"{item.url}\">{item.title}</a></strong>\n"
f"{item.date}\n\n"
f"{self.__sanitize_html(item.description)}"