Skip to content

Commit

Permalink
feeds: allow for articles older than week
Browse files Browse the repository at this point in the history
Useful for catching up on broken feeds (ie. observer)
  • Loading branch information
pbui committed Aug 25, 2024
1 parent ef1c175 commit 0506c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bobbit/modules/feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def process_feed(http_client, feed, cache):
timestamp = entry.get('updated_parsed', entry.get('published_parsed', None))
timestamp = time.mktime(timestamp) if timestamp else time.time()
time_diff = time.time() - timestamp
if time_diff > 24*60*60: # One day
if time_diff > 7*24*60*60: # One week
logging.debug('Skipping %s (too old)', link)
cache[key] = str(time.time())
continue
Expand Down

0 comments on commit 0506c2c

Please sign in to comment.