Skip to content

Update recent votes page to use json API from votes.twfy to show today's votes #1949

@struan

Description

@struan

https://votes.theyworkforyou.com/decisions/commons_api_source.json < this will show any votes in TWFY-votes currently sourced from the commons API (which will get replaced when the hansard source comes in to replace it).

So an option where there's a more visible box when this API shows anything, which could even link to the specific votes if the cache expired every 15 minutes or so.

For the structure of that endpoint (given it's currently empty), the schema is the same as https://votes.theyworkforyou.com/decisions/commons/2025.json (a 'division_name' and an 'url').

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions