From bbbb6d4bc7089e5ff298b80096900914948150b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Wed, 13 Apr 2022 20:40:03 +0200 Subject: [PATCH] Format code --- discord_rss_bot/discord_rss_bot.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/discord_rss_bot/discord_rss_bot.py b/discord_rss_bot/discord_rss_bot.py index 20a9a8e..90f5f4f 100644 --- a/discord_rss_bot/discord_rss_bot.py +++ b/discord_rss_bot/discord_rss_bot.py @@ -31,7 +31,8 @@ def add( Args: feed_url (str): The url of the feed to add - notify_discord (bool): Whether to send a message to Discord when the feed is added + notify_discord (bool): Whether to send a message to Discord when + the feed is added """ with closing(make_reader(db_file, plugins=[global_metadata.init_reader])) as reader: try: @@ -57,8 +58,8 @@ def add( hook = Webhook(webhook_url) hook.send( - f"discord-rss-bot: {feed_url} added to the database.\nYou now have " - f"{reader.get_feed_counts()} feeds." + f"discord-rss-bot: {feed_url} added to the database.\n" + f"You now have {reader.get_feed_counts()} feeds." ) typer.echo(f"{feed_url} added")