From 47e1b4fa39802d9e1f9351511b0aac7d8e19c8eb Mon Sep 17 00:00:00 2001 From: mike <219478+ilude@users.noreply.github.com> Date: Wed, 8 May 2024 21:34:43 -0400 Subject: [PATCH] debugging --- app/processors/title_editor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/processors/title_editor.py b/app/processors/title_editor.py index a1b1237..c45b1b6 100644 --- a/app/processors/title_editor.py +++ b/app/processors/title_editor.py @@ -70,9 +70,9 @@ def process(self, articles: list[FeedArticle]) -> list[FeedArticle]: if self.ollama_url: needs_processed = list(filter(lambda article: article.processed != self.script_hash, articles)) - if len(needs_processed) > 10: - needs_processed = list(filter(lambda article: article.pub_date.replace(tzinfo=utc) >= - (datetime.now() - timedelta(days=1)).replace(tzinfo=utc), articles)) + # if len(needs_processed) > 10: + # needs_processed = list(filter(lambda article: article.pub_date.replace(tzinfo=utc) >= + # (datetime.now() - timedelta(days=1)).replace(tzinfo=utc), needs_processed)) total = len(needs_processed) for count, article in enumerate(needs_processed, start=1):