MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / _eligible_posts

Function _eligible_posts

scripts/website/queue_browser_syndication.py:95–98  ·  view source on GitHub ↗
(today: dt.date, floor: dt.date, min_age_days: int, blog_dir: Path)

Source from the content-addressed store, hash-verified

93
94
95def _eligible_posts(today: dt.date, floor: dt.date, min_age_days: int, blog_dir: Path) -> list[Post]:
96 posts = discover_posts(blog_dir)
97 cutoff = today - dt.timedelta(days=min_age_days)
98 return [p for p in posts if p.date > floor and p.date <= cutoff]
99
100
101def _build_task(post: Post, platform: str) -> dict:

Callers 1

mainFunction · 0.85

Calls 1

discover_postsFunction · 0.90

Tested by

no test coverage detected