{"action":"created","comment":{"url":"https://api.github.com/repos/18F/foia/pulls/comments/22740191","id":22740191,"diff_hunk":"@@ -192,9 +237,15 @@ def parse_department(elem, name):\n             misc_key, misc_value = value\n             if 'misc' not in data:\n                 data['misc'] = {}\n-            data['misc'][misc_key] = misc_value\n+            misc_value = organize_contact(misc_value)\n+            if misc_value:\n+                data['misc'][misc_key] = misc_value","path":"contacts/scraper.py","position":99,"original_position":99,"commit_id":"dadaf102608903d2867c0b5445727efd3b963429","original_commit_id":"dadaf102608903d2867c0b5445727efd3b963429","user":{"login":"ramirezg","id":4596845,"avatar_url":"https://avatars.githubusercontent.com/u/4596845?v=3","gravatar_id":"","url":"https://api.github.com/users/ramirezg","html_url":"https://github.com/ramirezg","followers_url":"https://api.github.com/users/ramirezg/followers","following_url":"https://api.github.com/users/ramirezg/following{/other_user}","gists_url":"https://api.github.com/users/ramirezg/gists{/gist_id}","starred_url":"https://api.github.com/users/ramirezg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramirezg/subscriptions","organizations_url":"https://api.github.com/users/ramirezg/orgs","repos_url":"https://api.github.com/users/ramirezg/repos","events_url":"https://api.github.com/users/ramirezg/events{/privacy}","received_events_url":"https://api.github.com/users/ramirezg/received_events","type":"User","site_admin":false},"body":"need to add the `.strip` here","created_at":"2015-01-09T20:15:53Z","updated_at":"2015-01-09T20:15:53Z","html_url":"https://github.com/18F/foia/pull/94#discussion_r22740191","pull_request_url":"https://api.github.com/repos/18F/foia/pulls/94","_links":{"self":{"href":"https://api.github.com/repos/18F/foia/pulls/comments/22740191"},"html":{"href":"https://github.com/18F/foia/pull/94#discussion_r22740191"},"pull_request":{"href":"https://api.github.com/repos/18F/foia/pulls/94"}}},"pull_request":{"url":"https://api.github.com/repos/18F/foia/pulls/94","id":27060675,"html_url":"https://github.com/18F/foia/pull/94","diff_url":"https://github.com/18F/foia/pull/94.diff","patch_url":"https://github.com/18F/foia/pull/94.patch","issue_url":"https://api.github.com/repos/18F/foia/issues/94","number":94,"state":"open","locked":false,"title":"Phone number update","user":{"login":"ramirezg","id":4596845,"avatar_url":"https://avatars.githubusercontent.com/u/4596845?v=3","gravatar_id":"","url":"https://api.github.com/users/ramirezg","html_url":"https://github.com/ramirezg","followers_url":"https://api.github.com/users/ramirezg/followers","following_url":"https://api.github.com/users/ramirezg/following{/other_user}","gists_url":"https://api.github.com/users/ramirezg/gists{/gist_id}","starred_url":"https://api.github.com/users/ramirezg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramirezg/subscriptions","organizations_url":"https://api.github.com/users/ramirezg/orgs","repos_url":"https://api.github.com/users/ramirezg/repos","events_url":"https://api.github.com/users/ramirezg/events{/privacy}","received_events_url":"https://api.github.com/users/ramirezg/received_events","type":"User","site_admin":false},"body":"Branched off [update_yamls](https://github.com/18F/foia/tree/update_yamls)\r\n\r\nThis PR cleans the fax and phone numbers before they hit the yamls and reorganizes contacts to avoid data munging later.  ","created_at":"2015-01-08T21:20:38Z","updated_at":"2015-01-09T20:15:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88a6bdbb41dcc7427edd4979202d8cf67ac9f76d","assignee":{"login":"ramirezg","id":4596845,"avatar_url":"https://avatars.githubusercontent.com/u/4596845?v=3","gravatar_id":"","url":"https://api.github.com/users/ramirezg","html_url":"https://github.com/ramirezg","followers_url":"https://api.github.com/users/ramirezg/followers","following_url":"https://api.github.com/users/ramirezg/following{/other_user}","gists_url":"https://api.github.com/users/ramirezg/gists{/gist_id}","starred_url":"https://api.github.com/users/ramirezg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramirezg/subscriptions","organizations_url":"https://api.github.com/users/ramirezg/orgs","repos_url":"https://api.github.com/users/ramirezg/repos","events_url":"https://api.github.com/users/ramirezg/events{/privacy}","received_events_url":"https://api.github.com/users/ramirezg/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/18F/foia/pulls/94/commits","review_comments_url":"https://api.github.com/repos/18F/foia/pulls/94/comments","review_comment_url":"https://api.github.com/repos/18F/foia/pulls/comments/{number}","comments_url":"https://api.github.com/repos/18F/foia/issues/94/comments","statuses_url":"https://api.github.com/repos/18F/foia/statuses/dadaf102608903d2867c0b5445727efd3b963429","head":{"label":"18F:phone_number_update","ref":"phone_number_update","sha":"dadaf102608903d2867c0b5445727efd3b963429","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":20223769,"name":"foia","full_name":"18F/foia","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/foia","description":"Project wide discussion, blogging, and scratch space for 18F's FOIA modernization team.","fork":false,"url":"https://api.github.com/repos/18F/foia","forks_url":"https://api.github.com/repos/18F/foia/forks","keys_url":"https://api.github.com/repos/18F/foia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/foia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/foia/teams","hooks_url":"https://api.github.com/repos/18F/foia/hooks","issue_events_url":"https://api.github.com/repos/18F/foia/issues/events{/number}","events_url":"https://api.github.com/repos/18F/foia/events","assignees_url":"https://api.github.com/repos/18F/foia/assignees{/user}","branches_url":"https://api.github.com/repos/18F/foia/branches{/branch}","tags_url":"https://api.github.com/repos/18F/foia/tags","blobs_url":"https://api.github.com/repos/18F/foia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/foia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/foia/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/foia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/foia/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/foia/languages","stargazers_url":"https://api.github.com/repos/18F/foia/stargazers","contributors_url":"https://api.github.com/repos/18F/foia/contributors","subscribers_url":"https://api.github.com/repos/18F/foia/subscribers","subscription_url":"https://api.github.com/repos/18F/foia/subscription","commits_url":"https://api.github.com/repos/18F/foia/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/foia/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/foia/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/foia/issues/comments/{number}","contents_url":"https://api.github.com/repos/18F/foia/contents/{+path}","compare_url":"https://api.github.com/repos/18F/foia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/foia/merges","archive_url":"https://api.github.com/repos/18F/foia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/foia/downloads","issues_url":"https://api.github.com/repos/18F/foia/issues{/number}","pulls_url":"https://api.github.com/repos/18F/foia/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/foia/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/foia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/foia/labels{/name}","releases_url":"https://api.github.com/repos/18F/foia/releases{/id}","created_at":"2014-05-27T14:52:27Z","updated_at":"2015-01-07T16:58:20Z","pushed_at":"2015-01-09T18:48:16Z","git_url":"git://github.com/18F/foia.git","ssh_url":"git@github.com:18F/foia.git","clone_url":"https://github.com/18F/foia.git","svn_url":"https://github.com/18F/foia","homepage":"","size":10423,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":33,"default_branch":"master"}},"base":{"label":"18F:update_yamls","ref":"update_yamls","sha":"33b10d79dbf7d9bb225884c59a9367f748bc0820","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":20223769,"name":"foia","full_name":"18F/foia","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/foia","description":"Project wide discussion, blogging, and scratch space for 18F's FOIA modernization team.","fork":false,"url":"https://api.github.com/repos/18F/foia","forks_url":"https://api.github.com/repos/18F/foia/forks","keys_url":"https://api.github.com/repos/18F/foia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/foia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/foia/teams","hooks_url":"https://api.github.com/repos/18F/foia/hooks","issue_events_url":"https://api.github.com/repos/18F/foia/issues/events{/number}","events_url":"https://api.github.com/repos/18F/foia/events","assignees_url":"https://api.github.com/repos/18F/foia/assignees{/user}","branches_url":"https://api.github.com/repos/18F/foia/branches{/branch}","tags_url":"https://api.github.com/repos/18F/foia/tags","blobs_url":"https://api.github.com/repos/18F/foia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/foia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/foia/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/foia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/foia/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/foia/languages","stargazers_url":"https://api.github.com/repos/18F/foia/stargazers","contributors_url":"https://api.github.com/repos/18F/foia/contributors","subscribers_url":"https://api.github.com/repos/18F/foia/subscribers","subscription_url":"https://api.github.com/repos/18F/foia/subscription","commits_url":"https://api.github.com/repos/18F/foia/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/foia/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/foia/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/foia/issues/comments/{number}","contents_url":"https://api.github.com/repos/18F/foia/contents/{+path}","compare_url":"https://api.github.com/repos/18F/foia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/foia/merges","archive_url":"https://api.github.com/repos/18F/foia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/foia/downloads","issues_url":"https://api.github.com/repos/18F/foia/issues{/number}","pulls_url":"https://api.github.com/repos/18F/foia/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/foia/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/foia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/foia/labels{/name}","releases_url":"https://api.github.com/repos/18F/foia/releases{/id}","created_at":"2014-05-27T14:52:27Z","updated_at":"2015-01-07T16:58:20Z","pushed_at":"2015-01-09T18:48:16Z","git_url":"git://github.com/18F/foia.git","ssh_url":"git@github.com:18F/foia.git","clone_url":"https://github.com/18F/foia.git","svn_url":"https://github.com/18F/foia","homepage":"","size":10423,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/foia/pulls/94"},"html":{"href":"https://github.com/18F/foia/pull/94"},"issue":{"href":"https://api.github.com/repos/18F/foia/issues/94"},"comments":{"href":"https://api.github.com/repos/18F/foia/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/foia/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/foia/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/18F/foia/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/18F/foia/statuses/dadaf102608903d2867c0b5445727efd3b963429"}}}}