Add EP amendment and part votes, hidden from general lists by default

They come from the same responses as final votes. A sitting has over a
hundred, so they are flagged part_vote and only appear on request: the vote
lists have an option for them, feeds, counts and search chunks leave them out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
simonandClaude Opus 5.5 committed 2026-11-09 13:17:10 +01:00
1 parent bf19e503f9
commit b06f17e587
20 files changed
+176 -47

No files matched your search

+4 -3
View File
@@ -170,11 +170,12 @@ def calendar(start: str, end: str, person: str | None = None, party: str | None
@mcp.tool()
def person_votes(slug: str, topics: list[str] | None = None, limit: int = 50) -> str:
def person_votes(slug: str, topics: list[str] | None = None, include_parts: bool = False, limit: int = 50) -> str:
"""Votes: individual roll-call votes (with dissent flag) and faction votes during the person's mandates.
`spoke` links a speech by the person on the same item (say vs. vote)."""
`spoke` links a speech by the person on the same item (say vs. vote). include_parts adds European
Parliament votes on amendments and parts of a text."""
with connection() as conn:
return _dump(queries.person_votes(conn, slug, topics=topics, limit=limit))
return _dump(queries.person_votes(conn, slug, topics=topics, include_parts=include_parts, limit=limit))
@mcp.tool()