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

Function pending

scripts/website/syndicate_blog_posts.py:243–247  ·  view source on GitHub ↗
(post: Post, platform: str)

Source from the content-addressed store, hash-verified

241 cutoff = today - dt.timedelta(days=min_age_days)
242
243 def pending(post: Post, platform: str) -> bool:
244 wanted = platform_filters.get(platform) if platform_filters else None
245 if wanted is not None and not wanted(post):
246 return False
247 return not state.is_syndicated(post.slug, platform)
248
249 for post in posts:
250 if post.date <= floor:

Callers 1

select_candidateFunction · 0.85

Calls 2

is_syndicatedMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected