Update cli.py

This commit is contained in:
Joakim Hellsén 2024-05-22 19:38:55 +02:00
commit 4634b57a6c
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9
2 changed files with 17 additions and 12 deletions

View file

@ -153,7 +153,7 @@ async def add_page(request: Request, stats: CommonStats):
@static_router.post(path="/add", summary="Add feeds page.", tags=["HTML"])
async def add_feed(reader: CommonReader, stats: CommonStats, feed_urls: str = Form(...)):
"""Add feeds page."""
feed_info = []
feed_info: list[dict[str, str]] = []
# Each line is a feed URL.
for feed_url in feed_urls.split("\n"):
try: