From 3e4937be65b8d4b13a823726e97f3e631869d98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Tue, 14 Dec 2021 01:19:52 +0100 Subject: [PATCH] Add docstrings to stats and delete --- discord_rss_bot/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord_rss_bot/main.py b/discord_rss_bot/main.py index 1390e6c..6c56b4c 100644 --- a/discord_rss_bot/main.py +++ b/discord_rss_bot/main.py @@ -54,6 +54,7 @@ def add( @app.command() def stats() -> None: + """Print the number of feeds and entries in the database""" with closing(make_reader(Settings.db_file)) as reader: feed_count = reader.get_feed_counts() entry_count = reader.get_entry_counts() @@ -115,6 +116,7 @@ def backup() -> None: @app.command() def delete() -> None: + """Delete a feed from the database""" feed_dict = {} feed_number = 0 message = ""