diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2023-07-29 17:34:51 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2023-07-29 17:34:51 +0000 |
commit | 214ca33b6c936b3e6da48190fdcd309513513980 (patch) | |
tree | 97ded519c1f084c1f9b47c0b004ce2766c76dd47 /tagrss.py | |
parent | 51502a433353ba1bf034a22be9bdf7569531e2f5 (diff) | |
download | tagrss-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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, |