{"action":"created","issue":{"url":"https://api.github.com/repos/everypolitician/everypolitician-popolo-python/issues/12","repository_url":"https://api.github.com/repos/everypolitician/everypolitician-popolo-python","labels_url":"https://api.github.com/repos/everypolitician/everypolitician-popolo-python/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/everypolitician/everypolitician-popolo-python/issues/12/comments","events_url":"https://api.github.com/repos/everypolitician/everypolitician-popolo-python/issues/12/events","html_url":"https://github.com/everypolitician/everypolitician-popolo-python/pull/12","id":198004806,"number":12,"title":"Add some event-related helpers, as well as event.memberships","user":{"login":"andylolz","id":464193,"avatar_url":"https://avatars.githubusercontent.com/u/464193?v=3","gravatar_id":"","url":"https://api.github.com/users/andylolz","html_url":"https://github.com/andylolz","followers_url":"https://api.github.com/users/andylolz/followers","following_url":"https://api.github.com/users/andylolz/following{/other_user}","gists_url":"https://api.github.com/users/andylolz/gists{/gist_id}","starred_url":"https://api.github.com/users/andylolz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andylolz/subscriptions","organizations_url":"https://api.github.com/users/andylolz/orgs","repos_url":"https://api.github.com/users/andylolz/repos","events_url":"https://api.github.com/users/andylolz/events{/privacy}","received_events_url":"https://api.github.com/users/andylolz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-12-29T13:07:16Z","updated_at":"2016-12-29T15:42:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/everypolitician/everypolitician-popolo-python/pulls/12","html_url":"https://github.com/everypolitician/everypolitician-popolo-python/pull/12","diff_url":"https://github.com/everypolitician/everypolitician-popolo-python/pull/12.diff","patch_url":"https://github.com/everypolitician/everypolitician-popolo-python/pull/12.patch"},"body":"These are [present in everypolitician-popolo](https://github.com/everypolitician/everypolitician-popolo/blob/40dc460d8340df9ae78469b755ce73b4fd074ce3/lib/everypolitician/popolo.rb#L51-L63), so I thought they might be worth adding here too.\r\n\r\nThis allows you to easily get the latest term (`popolo.latest_term`), and get the memberships for this term (`popolo.latest_term.memberships`). All the stuff from the example in #9.\r\n\r\nSlightly weird that you can get memberships for an election… I wonder if moving this to a separate `LegislativePeriodCollection` might be clearer (as in the ruby version).\r\n\r\nFixes #8."},"comment":{"url":"https://api.github.com/repos/everypolitician/everypolitician-popolo-python/issues/comments/269648001","html_url":"https://github.com/everypolitician/everypolitician-popolo-python/pull/12#issuecomment-269648001","issue_url":"https://api.github.com/repos/everypolitician/everypolitician-popolo-python/issues/12","id":269648001,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T15:42:49Z","updated_at":"2016-12-29T15:42:49Z","body":"\n[![Coverage Status](https://coveralls.io/builds/9460416/badge)](https://coveralls.io/builds/9460416)\n\nCoverage remained the same at 100.0% when pulling **69f59f9fbad4a100d17610de68b87b47f73ce395 on andylolz:event-helpers** into **179bce84521826020cfca2e4663ce531aeb0d079 on everypolitician:master**.\n"}}
{"actor":{"display_login":"coveralls"}}