{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-api/issues/259","labels_url":"https://api.github.com/repos/alphagov/digitalmarketplace-api/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-api/issues/259/comments","events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-api/issues/259/events","html_url":"https://github.com/alphagov/digitalmarketplace-api/pull/259","id":109984660,"number":259,"title":"Rework logic to get declaration statuses.","user":{"login":"pcraig3","id":2454380,"avatar_url":"https://avatars.githubusercontent.com/u/2454380?v=3","gravatar_id":"","url":"https://api.github.com/users/pcraig3","html_url":"https://github.com/pcraig3","followers_url":"https://api.github.com/users/pcraig3/followers","following_url":"https://api.github.com/users/pcraig3/following{/other_user}","gists_url":"https://api.github.com/users/pcraig3/gists{/gist_id}","starred_url":"https://api.github.com/users/pcraig3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcraig3/subscriptions","organizations_url":"https://api.github.com/users/pcraig3/orgs","repos_url":"https://api.github.com/users/pcraig3/repos","events_url":"https://api.github.com/users/pcraig3/events{/privacy}","received_events_url":"https://api.github.com/users/pcraig3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-06T11:01:09Z","updated_at":"2015-10-06T15:58:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-api/pulls/259","html_url":"https://github.com/alphagov/digitalmarketplace-api/pull/259","diff_url":"https://github.com/alphagov/digitalmarketplace-api/pull/259.diff","patch_url":"https://github.com/alphagov/digitalmarketplace-api/pull/259.patch"},"body":"Pull request addresses two things.\r\n\r\n1. Script was failing on the parameter name: it was looking for `path_to_declaration_manifest` not `path_to_manifest`\r\n2. Script uses same logic as in the generate email script to add an extra `State of Declaration` column to the resulting .csv file.\r\n - Only suppliers whose declarations are `started` or `completed` will be returned\r\n\r\nProbably better to put this into [digitalmarketplace-scripts](https://github.com/alphagov/digitalmarketplace-scripts) if we're planning to use this very often.\r\n\r\nOh, and p.s., this breaks in Python3."},"comment":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-api/issues/comments/145909218","html_url":"https://github.com/alphagov/digitalmarketplace-api/pull/259#issuecomment-145909218","issue_url":"https://api.github.com/repos/alphagov/digitalmarketplace-api/issues/259","id":145909218,"user":{"login":"robyoung","id":14287,"avatar_url":"https://avatars.githubusercontent.com/u/14287?v=3","gravatar_id":"","url":"https://api.github.com/users/robyoung","html_url":"https://github.com/robyoung","followers_url":"https://api.github.com/users/robyoung/followers","following_url":"https://api.github.com/users/robyoung/following{/other_user}","gists_url":"https://api.github.com/users/robyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/robyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robyoung/subscriptions","organizations_url":"https://api.github.com/users/robyoung/orgs","repos_url":"https://api.github.com/users/robyoung/repos","events_url":"https://api.github.com/users/robyoung/events{/privacy}","received_events_url":"https://api.github.com/users/robyoung/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T15:58:21Z","updated_at":"2015-10-06T15:58:21Z","body":"> Oh, and p.s., this breaks in Python3\r\nThen use Python3 and make it break in Python2 :trollface: "}}