{"action":"created","comment":{"url":"https://api.github.com/repos/sunlightlabs/openstates/pulls/comments/35454573","id":35454573,"diff_hunk":"@@ -48,7 +48,13 @@ def scrape_member(self, chamber, term, member_url):\n \n         party = name_and_party[-1]\n \n-        if party == '(R)':\n+        if ' '.join(name_and_party[1:]) == 'David Johnson' and \"(\" not in party:\n+                full_name = ' '.join(name_and_party[1:])\n+                party = 'Democratic'\n+        elif ' '.join(name_and_party[1:]) == 'David Johnson' and \"(\" in party:","path":"openstates/ar/legislators.py","position":8,"original_position":8,"commit_id":"ea157786f00aac410655d46f0c1f1d9ef2afa8f8","original_commit_id":"ea157786f00aac410655d46f0c1f1d9ef2afa8f8","user":{"login":"mileswwatkins","id":4959135,"avatar_url":"https://avatars.githubusercontent.com/u/4959135?v=3","gravatar_id":"","url":"https://api.github.com/users/mileswwatkins","html_url":"https://github.com/mileswwatkins","followers_url":"https://api.github.com/users/mileswwatkins/followers","following_url":"https://api.github.com/users/mileswwatkins/following{/other_user}","gists_url":"https://api.github.com/users/mileswwatkins/gists{/gist_id}","starred_url":"https://api.github.com/users/mileswwatkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mileswwatkins/subscriptions","organizations_url":"https://api.github.com/users/mileswwatkins/orgs","repos_url":"https://api.github.com/users/mileswwatkins/repos","events_url":"https://api.github.com/users/mileswwatkins/events{/privacy}","received_events_url":"https://api.github.com/users/mileswwatkins/received_events","type":"User","site_admin":false},"body":"If a party _does_ come back, then `' '.join(name_and_party[1:]) == 'David Johnson'` will be false, right?","created_at":"2015-07-24T18:55:55Z","updated_at":"2015-07-24T18:55:55Z","html_url":"https://github.com/sunlightlabs/openstates/pull/794#discussion_r35454573","pull_request_url":"https://api.github.com/repos/sunlightlabs/openstates/pulls/794","_links":{"self":{"href":"https://api.github.com/repos/sunlightlabs/openstates/pulls/comments/35454573"},"html":{"href":"https://github.com/sunlightlabs/openstates/pull/794#discussion_r35454573"},"pull_request":{"href":"https://api.github.com/repos/sunlightlabs/openstates/pulls/794"}}},"pull_request":{"url":"https://api.github.com/repos/sunlightlabs/openstates/pulls/794","id":40801183,"html_url":"https://github.com/sunlightlabs/openstates/pull/794","diff_url":"https://github.com/sunlightlabs/openstates/pull/794.diff","patch_url":"https://github.com/sunlightlabs/openstates/pull/794.patch","issue_url":"https://api.github.com/repos/sunlightlabs/openstates/issues/794","number":794,"state":"open","locked":false,"title":"AR: inserted David Johnson exception","user":{"login":"linzjax","id":8128188,"avatar_url":"https://avatars.githubusercontent.com/u/8128188?v=3","gravatar_id":"","url":"https://api.github.com/users/linzjax","html_url":"https://github.com/linzjax","followers_url":"https://api.github.com/users/linzjax/followers","following_url":"https://api.github.com/users/linzjax/following{/other_user}","gists_url":"https://api.github.com/users/linzjax/gists{/gist_id}","starred_url":"https://api.github.com/users/linzjax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linzjax/subscriptions","organizations_url":"https://api.github.com/users/linzjax/orgs","repos_url":"https://api.github.com/users/linzjax/repos","events_url":"https://api.github.com/users/linzjax/events{/privacy}","received_events_url":"https://api.github.com/users/linzjax/received_events","type":"User","site_admin":false},"body":"He didn't have a party tag next to his name. Created an exception that would break if he added one later.","created_at":"2015-07-24T18:15:33Z","updated_at":"2015-07-24T18:55:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8328b0f06f887234f687288dd1c83c306f99ba98","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sunlightlabs/openstates/pulls/794/commits","review_comments_url":"https://api.github.com/repos/sunlightlabs/openstates/pulls/794/comments","review_comment_url":"https://api.github.com/repos/sunlightlabs/openstates/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sunlightlabs/openstates/issues/794/comments","statuses_url":"https://api.github.com/repos/sunlightlabs/openstates/statuses/ea157786f00aac410655d46f0c1f1d9ef2afa8f8","head":{"label":"linzjax:master","ref":"master","sha":"ea157786f00aac410655d46f0c1f1d9ef2afa8f8","user":{"login":"linzjax","id":8128188,"avatar_url":"https://avatars.githubusercontent.com/u/8128188?v=3","gravatar_id":"","url":"https://api.github.com/users/linzjax","html_url":"https://github.com/linzjax","followers_url":"https://api.github.com/users/linzjax/followers","following_url":"https://api.github.com/users/linzjax/following{/other_user}","gists_url":"https://api.github.com/users/linzjax/gists{/gist_id}","starred_url":"https://api.github.com/users/linzjax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linzjax/subscriptions","organizations_url":"https://api.github.com/users/linzjax/orgs","repos_url":"https://api.github.com/users/linzjax/repos","events_url":"https://api.github.com/users/linzjax/events{/privacy}","received_events_url":"https://api.github.com/users/linzjax/received_events","type":"User","site_admin":false},"repo":{"id":36392789,"name":"openstates","full_name":"linzjax/openstates","owner":{"login":"linzjax","id":8128188,"avatar_url":"https://avatars.githubusercontent.com/u/8128188?v=3","gravatar_id":"","url":"https://api.github.com/users/linzjax","html_url":"https://github.com/linzjax","followers_url":"https://api.github.com/users/linzjax/followers","following_url":"https://api.github.com/users/linzjax/following{/other_user}","gists_url":"https://api.github.com/users/linzjax/gists{/gist_id}","starred_url":"https://api.github.com/users/linzjax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linzjax/subscriptions","organizations_url":"https://api.github.com/users/linzjax/orgs","repos_url":"https://api.github.com/users/linzjax/repos","events_url":"https://api.github.com/users/linzjax/events{/privacy}","received_events_url":"https://api.github.com/users/linzjax/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/linzjax/openstates","description":"source for Open States' scrapers","fork":true,"url":"https://api.github.com/repos/linzjax/openstates","forks_url":"https://api.github.com/repos/linzjax/openstates/forks","keys_url":"https://api.github.com/repos/linzjax/openstates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linzjax/openstates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linzjax/openstates/teams","hooks_url":"https://api.github.com/repos/linzjax/openstates/hooks","issue_events_url":"https://api.github.com/repos/linzjax/openstates/issues/events{/number}","events_url":"https://api.github.com/repos/linzjax/openstates/events","assignees_url":"https://api.github.com/repos/linzjax/openstates/assignees{/user}","branches_url":"https://api.github.com/repos/linzjax/openstates/branches{/branch}","tags_url":"https://api.github.com/repos/linzjax/openstates/tags","blobs_url":"https://api.github.com/repos/linzjax/openstates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linzjax/openstates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linzjax/openstates/git/refs{/sha}","trees_url":"https://api.github.com/repos/linzjax/openstates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linzjax/openstates/statuses/{sha}","languages_url":"https://api.github.com/repos/linzjax/openstates/languages","stargazers_url":"https://api.github.com/repos/linzjax/openstates/stargazers","contributors_url":"https://api.github.com/repos/linzjax/openstates/contributors","subscribers_url":"https://api.github.com/repos/linzjax/openstates/subscribers","subscription_url":"https://api.github.com/repos/linzjax/openstates/subscription","commits_url":"https://api.github.com/repos/linzjax/openstates/commits{/sha}","git_commits_url":"https://api.github.com/repos/linzjax/openstates/git/commits{/sha}","comments_url":"https://api.github.com/repos/linzjax/openstates/comments{/number}","issue_comment_url":"https://api.github.com/repos/linzjax/openstates/issues/comments{/number}","contents_url":"https://api.github.com/repos/linzjax/openstates/contents/{+path}","compare_url":"https://api.github.com/repos/linzjax/openstates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linzjax/openstates/merges","archive_url":"https://api.github.com/repos/linzjax/openstates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linzjax/openstates/downloads","issues_url":"https://api.github.com/repos/linzjax/openstates/issues{/number}","pulls_url":"https://api.github.com/repos/linzjax/openstates/pulls{/number}","milestones_url":"https://api.github.com/repos/linzjax/openstates/milestones{/number}","notifications_url":"https://api.github.com/repos/linzjax/openstates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linzjax/openstates/labels{/name}","releases_url":"https://api.github.com/repos/linzjax/openstates/releases{/id}","created_at":"2015-05-27T20:09:21Z","updated_at":"2015-05-27T20:09:23Z","pushed_at":"2015-07-24T18:13:35Z","git_url":"git://github.com/linzjax/openstates.git","ssh_url":"git@github.com:linzjax/openstates.git","clone_url":"https://github.com/linzjax/openstates.git","svn_url":"https://github.com/linzjax/openstates","homepage":"http://openstates.org","size":20660,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sunlightlabs:master","ref":"master","sha":"2ef8d78637302c4381162242d2483514c9790426","user":{"login":"sunlightlabs","id":40420,"avatar_url":"https://avatars.githubusercontent.com/u/40420?v=3","gravatar_id":"","url":"https://api.github.com/users/sunlightlabs","html_url":"https://github.com/sunlightlabs","followers_url":"https://api.github.com/users/sunlightlabs/followers","following_url":"https://api.github.com/users/sunlightlabs/following{/other_user}","gists_url":"https://api.github.com/users/sunlightlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/sunlightlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunlightlabs/subscriptions","organizations_url":"https://api.github.com/users/sunlightlabs/orgs","repos_url":"https://api.github.com/users/sunlightlabs/repos","events_url":"https://api.github.com/users/sunlightlabs/events{/privacy}","received_events_url":"https://api.github.com/users/sunlightlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":138635,"name":"openstates","full_name":"sunlightlabs/openstates","owner":{"login":"sunlightlabs","id":40420,"avatar_url":"https://avatars.githubusercontent.com/u/40420?v=3","gravatar_id":"","url":"https://api.github.com/users/sunlightlabs","html_url":"https://github.com/sunlightlabs","followers_url":"https://api.github.com/users/sunlightlabs/followers","following_url":"https://api.github.com/users/sunlightlabs/following{/other_user}","gists_url":"https://api.github.com/users/sunlightlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/sunlightlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunlightlabs/subscriptions","organizations_url":"https://api.github.com/users/sunlightlabs/orgs","repos_url":"https://api.github.com/users/sunlightlabs/repos","events_url":"https://api.github.com/users/sunlightlabs/events{/privacy}","received_events_url":"https://api.github.com/users/sunlightlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sunlightlabs/openstates","description":"source for Open States' scrapers","fork":false,"url":"https://api.github.com/repos/sunlightlabs/openstates","forks_url":"https://api.github.com/repos/sunlightlabs/openstates/forks","keys_url":"https://api.github.com/repos/sunlightlabs/openstates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sunlightlabs/openstates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sunlightlabs/openstates/teams","hooks_url":"https://api.github.com/repos/sunlightlabs/openstates/hooks","issue_events_url":"https://api.github.com/repos/sunlightlabs/openstates/issues/events{/number}","events_url":"https://api.github.com/repos/sunlightlabs/openstates/events","assignees_url":"https://api.github.com/repos/sunlightlabs/openstates/assignees{/user}","branches_url":"https://api.github.com/repos/sunlightlabs/openstates/branches{/branch}","tags_url":"https://api.github.com/repos/sunlightlabs/openstates/tags","blobs_url":"https://api.github.com/repos/sunlightlabs/openstates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sunlightlabs/openstates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sunlightlabs/openstates/git/refs{/sha}","trees_url":"https://api.github.com/repos/sunlightlabs/openstates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sunlightlabs/openstates/statuses/{sha}","languages_url":"https://api.github.com/repos/sunlightlabs/openstates/languages","stargazers_url":"https://api.github.com/repos/sunlightlabs/openstates/stargazers","contributors_url":"https://api.github.com/repos/sunlightlabs/openstates/contributors","subscribers_url":"https://api.github.com/repos/sunlightlabs/openstates/subscribers","subscription_url":"https://api.github.com/repos/sunlightlabs/openstates/subscription","commits_url":"https://api.github.com/repos/sunlightlabs/openstates/commits{/sha}","git_commits_url":"https://api.github.com/repos/sunlightlabs/openstates/git/commits{/sha}","comments_url":"https://api.github.com/repos/sunlightlabs/openstates/comments{/number}","issue_comment_url":"https://api.github.com/repos/sunlightlabs/openstates/issues/comments{/number}","contents_url":"https://api.github.com/repos/sunlightlabs/openstates/contents/{+path}","compare_url":"https://api.github.com/repos/sunlightlabs/openstates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sunlightlabs/openstates/merges","archive_url":"https://api.github.com/repos/sunlightlabs/openstates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sunlightlabs/openstates/downloads","issues_url":"https://api.github.com/repos/sunlightlabs/openstates/issues{/number}","pulls_url":"https://api.github.com/repos/sunlightlabs/openstates/pulls{/number}","milestones_url":"https://api.github.com/repos/sunlightlabs/openstates/milestones{/number}","notifications_url":"https://api.github.com/repos/sunlightlabs/openstates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sunlightlabs/openstates/labels{/name}","releases_url":"https://api.github.com/repos/sunlightlabs/openstates/releases{/id}","created_at":"2009-02-26T22:49:19Z","updated_at":"2015-07-20T23:00:28Z","pushed_at":"2015-07-24T18:15:33Z","git_url":"git://github.com/sunlightlabs/openstates.git","ssh_url":"git@github.com:sunlightlabs/openstates.git","clone_url":"https://github.com/sunlightlabs/openstates.git","svn_url":"https://github.com/sunlightlabs/openstates","homepage":"http://openstates.org","size":27242,"stargazers_count":346,"watchers_count":346,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":208,"mirror_url":null,"open_issues_count":46,"forks":208,"open_issues":46,"watchers":346,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sunlightlabs/openstates/pulls/794"},"html":{"href":"https://github.com/sunlightlabs/openstates/pull/794"},"issue":{"href":"https://api.github.com/repos/sunlightlabs/openstates/issues/794"},"comments":{"href":"https://api.github.com/repos/sunlightlabs/openstates/issues/794/comments"},"review_comments":{"href":"https://api.github.com/repos/sunlightlabs/openstates/pulls/794/comments"},"review_comment":{"href":"https://api.github.com/repos/sunlightlabs/openstates/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sunlightlabs/openstates/pulls/794/commits"},"statuses":{"href":"https://api.github.com/repos/sunlightlabs/openstates/statuses/ea157786f00aac410655d46f0c1f1d9ef2afa8f8"}}}}