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

Function _platform_accepts

scripts/website/queue_browser_syndication.py:62–67  ·  view source on GitHub ↗

Whether ``platform`` wants ``post`` at all. Friday-only platforms take just the weekly digest post; everyone else takes every eligible post.

(platform: str, post: Post)

Source from the content-addressed store, hash-verified

60
61
62def _platform_accepts(platform: str, post: Post) -> bool:
63 """Whether ``platform`` wants ``post`` at all. Friday-only platforms take
64 just the weekly digest post; everyone else takes every eligible post."""
65 if platform in WEEKLY_FRIDAY_PLATFORMS:
66 return post.date.weekday() == 4
67 return True
68
69
70def _task_is_allowed(task: dict, dates_by_slug: dict[str, dt.date]) -> bool:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected