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)
| 60 | |
| 61 | |
| 62 | def _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 | |
| 70 | def _task_is_allowed(task: dict, dates_by_slug: dict[str, dt.date]) -> bool: |