little code style fixes
This commit is contained in:
parent
f101f825a3
commit
7939babbe0
|
@ -1,7 +1,6 @@
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from bleach.sanitizer import Cleaner
|
|
||||||
from logging import Logger
|
from logging import Logger
|
||||||
|
from bleach.sanitizer import Cleaner
|
||||||
from telebot import TeleBot
|
from telebot import TeleBot
|
||||||
from telebot.handler_backends import BaseMiddleware
|
from telebot.handler_backends import BaseMiddleware
|
||||||
from telebot.types import Message
|
from telebot.types import Message
|
||||||
|
@ -164,7 +163,6 @@ class Notifier:
|
||||||
|
|
||||||
def __format_message(self, item: FeedItem) -> str:
|
def __format_message(self, item: FeedItem) -> str:
|
||||||
return (
|
return (
|
||||||
# TODO: Return date when FeedItem starts to return formattable datetime object
|
|
||||||
f"<strong><a href=\"{item.url}\">{item.title}</a></strong>\n"
|
f"<strong><a href=\"{item.url}\">{item.title}</a></strong>\n"
|
||||||
f"{item.date}\n\n"
|
f"{item.date}\n\n"
|
||||||
f"{self.__sanitize_html(item.description)}"
|
f"{self.__sanitize_html(item.description)}"
|
||||||
|
|
Loading…
Reference in a new issue