Add docstrings to stats and delete

This commit is contained in:
2021-12-14 01:19:52 +01:00
parent c56fc76d6a
commit 3e4937be65

View File

@ -54,6 +54,7 @@ def add(
@app.command() @app.command()
def stats() -> None: def stats() -> None:
"""Print the number of feeds and entries in the database"""
with closing(make_reader(Settings.db_file)) as reader: with closing(make_reader(Settings.db_file)) as reader:
feed_count = reader.get_feed_counts() feed_count = reader.get_feed_counts()
entry_count = reader.get_entry_counts() entry_count = reader.get_entry_counts()
@ -115,6 +116,7 @@ def backup() -> None:
@app.command() @app.command()
def delete() -> None: def delete() -> None:
"""Delete a feed from the database"""
feed_dict = {} feed_dict = {}
feed_number = 0 feed_number = 0
message = "" message = ""