From 32cce7b102a4ecfa82be2d299d5600c922675b02 Mon Sep 17 00:00:00 2001 From: anandd Date: Fri, 14 Feb 2025 12:22:43 -0500 Subject: [PATCH] missed removing hard-coded value for oldest_article in last PR --- recipes/the_wire.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/the_wire.recipe b/recipes/the_wire.recipe index 7f85e0cec3..1be1e60e44 100644 --- a/recipes/the_wire.recipe +++ b/recipes/the_wire.recipe @@ -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']