Closed chrismytton closed 9 years ago
Will also need to deal with legislatures which were introduced in https://github.com/everypolitician/everypolitician-data/pull/258.
The legislative periods are now listed in reverse chronological order, so you can just take the first one as the latest.
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.