aboutsummaryrefslogtreecommitdiff
path: root/tagrss.py
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2023-07-29 17:34:51 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2023-07-29 17:34:51 +0000
commit214ca33b6c936b3e6da48190fdcd309513513980 (patch)
tree97ded519c1f084c1f9b47c0b004ce2766c76dd47 /tagrss.py
parent51502a433353ba1bf034a22be9bdf7569531e2f5 (diff)
downloadtagrss-214ca33b6c936b3e6da48190fdcd309513513980.tar
tagrss-214ca33b6c936b3e6da48190fdcd309513513980.tar.gz
tagrss-214ca33b6c936b3e6da48190fdcd309513513980.zip
Use smaller base image, exit cleanly in Docker, improve logging
Diffstat (limited to 'tagrss.py')
-rw-r--r--tagrss.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tagrss.py b/tagrss.py
index 6ac5270..e22c6b6 100644
--- a/tagrss.py
+++ b/tagrss.py
@@ -69,7 +69,7 @@ class TagRss:
parsed_feed: feedparser.FeedParserDict,
epoch_downloaded: int,
tags: list[str],
- ) -> None:
+ ) -> int:
with self.connection:
feed_title: str = parsed_feed.feed.get("title", "") # type: ignore
try:
@@ -87,6 +87,7 @@ class TagRss:
((feed_id, tag) for tag in tags),
)
self.store_feed_entries(feed_id, parsed_feed, epoch_downloaded)
+ return feed_id
def get_entries(
self,