This commit is contained in:
Kovid Goyal 2025-02-15 07:12:56 +05:30
commit 0e5af00e87
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -76,7 +76,7 @@ class TheWire(BasicNewsRecipe):
continue
now = datetime.now(datetime.timezone.utc) # Ensure 'now' is offset-aware
post_date = datetime.strptime(b['post_date'], '%Y-%m-%d %H:%M:%S').replace(tzinfo=datetime.timezone.utc) # Make 'post_date' offset-aware
if (now - post_date).days > 1:
if (now - post_date).days > self.oldest_article:
self.log('Skipping', title, 'as it is too old')
continue
title = b['post_title']