Make upcoming_entries_for_container work without container filter

When container_type/container_id are None, returns all upcoming
confirmed entries across all calendars (for global event listings).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-22 23:04:55 +00:00
parent 6e438dbfdc
commit 16e4d3aa57
2 changed files with 25 additions and 14 deletions

View File

@@ -130,7 +130,8 @@ class CalendarService(Protocol):
) -> set[int]: ...
async def upcoming_entries_for_container(
self, session: AsyncSession, container_type: str, container_id: int,
self, session: AsyncSession,
container_type: str | None = None, container_id: int | None = None,
*, page: int = 1, per_page: int = 20,
) -> tuple[list[CalendarEntryDTO], bool]: ...