Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ilude committed May 9, 2024
1 parent 6dec933 commit 47e1b4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/processors/title_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 47e1b4f

Please sign in to comment.