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

Function discover_posts

scripts/website/syndicate_blog_posts.py:213–222  ·  view source on GitHub ↗
(blog_dir: Path)

Source from the content-addressed store, hash-verified

211
212
213def discover_posts(blog_dir: Path) -> list[Post]:
214 posts: list[Post] = []
215 for path in sorted(blog_dir.glob("*.md")):
216 if path.name.startswith("_"):
217 continue
218 post = parse_post(path)
219 if post is not None:
220 posts.append(post)
221 posts.sort(key=lambda p: p.date)
222 return posts
223
224
225def select_candidate(

Callers 4

_eligible_postsFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.85

Calls 3

parse_postFunction · 0.85
appendMethod · 0.65
sortMethod · 0.65

Tested by

no test coverage detected