Skip to content

Add added_before filter to get_entries and search_entries. #314 - #435

Merged
lemon24 merged 2 commits into
lemon24:masterfrom
rvcreationworld:issue-314
Nov 17, 2026
Merged

lemon24 merged 2 commits into
lemon24:masterfrom
rvcreationworld:issue-314

Conversation

@rvcreationworld

Copy link
Copy Markdown
Contributor

Resolves #314

  • Add added_before: datetime | None = None keyword argument to Reader.get_entries(), Reader.get_entry_counts(), Reader.search_entries(), and Reader.search_entry_counts().
  • Propagate added_before to EntryFilter with type validation and UTC normalization.
  • Filter by entries.first_updated < :added_before in entry_filter.
  • Add comprehensive tests in test_reader_filter.py covering all entry listing and count variants.

@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.15%. Comparing base (42e3c98) to head (4e7c8b8).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #435   +/-   ##
=======================================
  Coverage   94.14%   94.15%           
=======================================
  Files         110      110           
  Lines       14181    14192   +11     
  Branches     1039     1042    +3     
=======================================
+ Hits        13351    13362   +11     
  Misses        752      752           
  Partials       78       78           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lemon24 lemon24 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

Comment thread tests/test_reader_filter.py Resolved
Comment thread tests/test_reader_filter.py Resolved
@rvcreationworld

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback! Updated the fixture to patch reader._now across two update_feeds() calls instead of using direct SQL, and added both source and enclosures on 2010-01-02.

@lemon24
lemon24 merged commit 07fd98d into lemon24:master Nov 17, 2026
21 checks passed
@lemon24

lemon24 commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Thank you for the PR!

lemon24 added a commit that referenced this pull request Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get entries added before

2 participants