mysociety / SeePoliticiansTweet

0 stars 0 forks source link

Stop using old countries.json #4

Closed chrismytton closed 9 years ago

chrismytton commented 9 years ago

We're currently using http://data.everypolitician.org/countries.json to get the latest term CSV, but that file has been superseded by https://github.com/everypolitician/everypolitician-data/blob/master/countries.json. We should switch to using that file and calculate the current legislative session by checking for a latest: true flag on a legislative session.

tmtmtmtm commented 9 years ago

depends on https://github.com/everypolitician/everypolitician-data/issues/254

chrismytton commented 9 years ago

Will also need to deal with legislatures which were introduced in https://github.com/everypolitician/everypolitician-data/pull/258.

tmtmtmtm commented 9 years ago

The legislative periods are now listed in reverse chronological order, so you can just take the first one as the latest.