mysociety / yournextrepresentative

A website for crowd-sourcing structured election candidate data
https://candidates.democracyclub.org.uk/
GNU Affero General Public License v3.0
56 stars 21 forks source link

Allow an alternative party image to be used #265

Open andylolz opened 9 years ago

andylolz commented 9 years ago

A candidate has requested the third party image here be used: http://openelectoralcommission.org.uk/parties/PP804/trade-unionist-and-socialist-coalition/

Is this something for the party to resolve with the Electoral Commission? That is, does the order of the images hold some significance as far as the Electoral Commission are concerned?

Or, can this be resolved by reordering the images in Open Electoral Commission?

mhl commented 9 years ago

We hardcode the image to use for some parties where the default is surprising when doing an import from OpenElectoralCommission: https://github.com/mysociety/yournextmp-popit/blob/master/candidates/management/commands/candidates_update_popit_parties_from_ec_data.py#L30-L41

Otherwise the first one in the OpenElectoralCommission list is used.

That's per-party, not per candidate, though. So at the moment, we could do the same for the TUSC if they all wanted that image used. I think ideally we would display the image that each candidate wants used on the ballot paper.

andylolz commented 9 years ago

Perfect – thanks, Mark. I understood from the TUSC candidate that this would be for all candidates (since the third image is the logo they are using for this year’s campaign.) I’ve contacted the TUSC candidate to confirm this, though. If he confirms, I’ll send a PR.