{"action":"created","comment":{"url":"https://api.github.com/repos/blakeparkinson/sports2/pulls/comments/24560155","id":24560155,"diff_hunk":"@@ -135,6 +144,19 @@ formatEUSoccerPlayers = function(response){\n   return players;\n }\n \n+formatMLBPlayers = function(response, team_id){\n+  parseString(response, function (err, result) {\n+    var str = result[Object.keys(result)[0]];\n+        for (j=0; j < str.team.length; j++){ \n+          if (str.team[j].$.id == team_id){","path":"models/players.js","position":40,"original_position":40,"commit_id":"85fca36000856bfe5ae94500d4a57a6ad4c1fbbd","original_commit_id":"85fca36000856bfe5ae94500d4a57a6ad4c1fbbd","user":{"login":"blakeparkinson","id":1864277,"avatar_url":"https://avatars.githubusercontent.com/u/1864277?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeparkinson","html_url":"https://github.com/blakeparkinson","followers_url":"https://api.github.com/users/blakeparkinson/followers","following_url":"https://api.github.com/users/blakeparkinson/following{/other_user}","gists_url":"https://api.github.com/users/blakeparkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeparkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeparkinson/subscriptions","organizations_url":"https://api.github.com/users/blakeparkinson/orgs","repos_url":"https://api.github.com/users/blakeparkinson/repos","events_url":"https://api.github.com/users/blakeparkinson/events{/privacy}","received_events_url":"https://api.github.com/users/blakeparkinson/received_events","type":"User","site_admin":false},"body":"is this just to be extra cautious? If so, maybe add an else clause outputting a message?","created_at":"2015-02-12T05:55:26Z","updated_at":"2015-02-12T05:55:26Z","html_url":"https://github.com/blakeparkinson/sports2/pull/85#discussion_r24560155","pull_request_url":"https://api.github.com/repos/blakeparkinson/sports2/pulls/85","_links":{"self":{"href":"https://api.github.com/repos/blakeparkinson/sports2/pulls/comments/24560155"},"html":{"href":"https://github.com/blakeparkinson/sports2/pull/85#discussion_r24560155"},"pull_request":{"href":"https://api.github.com/repos/blakeparkinson/sports2/pulls/85"}}},"pull_request":{"url":"https://api.github.com/repos/blakeparkinson/sports2/pulls/85","id":29065418,"html_url":"https://github.com/blakeparkinson/sports2/pull/85","diff_url":"https://github.com/blakeparkinson/sports2/pull/85.diff","patch_url":"https://github.com/blakeparkinson/sports2/pull/85.patch","issue_url":"https://api.github.com/repos/blakeparkinson/sports2/issues/85","number":85,"state":"open","locked":false,"title":"basic mlb stuff untested","user":{"login":"kelseyedmodo","id":6014029,"avatar_url":"https://avatars.githubusercontent.com/u/6014029?v=3","gravatar_id":"","url":"https://api.github.com/users/kelseyedmodo","html_url":"https://github.com/kelseyedmodo","followers_url":"https://api.github.com/users/kelseyedmodo/followers","following_url":"https://api.github.com/users/kelseyedmodo/following{/other_user}","gists_url":"https://api.github.com/users/kelseyedmodo/gists{/gist_id}","starred_url":"https://api.github.com/users/kelseyedmodo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelseyedmodo/subscriptions","organizations_url":"https://api.github.com/users/kelseyedmodo/orgs","repos_url":"https://api.github.com/users/kelseyedmodo/repos","events_url":"https://api.github.com/users/kelseyedmodo/events{/privacy}","received_events_url":"https://api.github.com/users/kelseyedmodo/received_events","type":"User","site_admin":false},"body":"need blake to add mlb teams into mongo so I can test this","created_at":"2015-02-11T03:06:48Z","updated_at":"2015-02-12T05:55:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef5615bad353676d114c609c5ee21baaf13d3acf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/blakeparkinson/sports2/pulls/85/commits","review_comments_url":"https://api.github.com/repos/blakeparkinson/sports2/pulls/85/comments","review_comment_url":"https://api.github.com/repos/blakeparkinson/sports2/pulls/comments/{number}","comments_url":"https://api.github.com/repos/blakeparkinson/sports2/issues/85/comments","statuses_url":"https://api.github.com/repos/blakeparkinson/sports2/statuses/85fca36000856bfe5ae94500d4a57a6ad4c1fbbd","head":{"label":"blakeparkinson:mlbplayers","ref":"mlbplayers","sha":"85fca36000856bfe5ae94500d4a57a6ad4c1fbbd","user":{"login":"blakeparkinson","id":1864277,"avatar_url":"https://avatars.githubusercontent.com/u/1864277?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeparkinson","html_url":"https://github.com/blakeparkinson","followers_url":"https://api.github.com/users/blakeparkinson/followers","following_url":"https://api.github.com/users/blakeparkinson/following{/other_user}","gists_url":"https://api.github.com/users/blakeparkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeparkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeparkinson/subscriptions","organizations_url":"https://api.github.com/users/blakeparkinson/orgs","repos_url":"https://api.github.com/users/blakeparkinson/repos","events_url":"https://api.github.com/users/blakeparkinson/events{/privacy}","received_events_url":"https://api.github.com/users/blakeparkinson/received_events","type":"User","site_admin":false},"repo":{"id":29114266,"name":"sports2","full_name":"blakeparkinson/sports2","owner":{"login":"blakeparkinson","id":1864277,"avatar_url":"https://avatars.githubusercontent.com/u/1864277?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeparkinson","html_url":"https://github.com/blakeparkinson","followers_url":"https://api.github.com/users/blakeparkinson/followers","following_url":"https://api.github.com/users/blakeparkinson/following{/other_user}","gists_url":"https://api.github.com/users/blakeparkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeparkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeparkinson/subscriptions","organizations_url":"https://api.github.com/users/blakeparkinson/orgs","repos_url":"https://api.github.com/users/blakeparkinson/repos","events_url":"https://api.github.com/users/blakeparkinson/events{/privacy}","received_events_url":"https://api.github.com/users/blakeparkinson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blakeparkinson/sports2","description":"Sports2","fork":false,"url":"https://api.github.com/repos/blakeparkinson/sports2","forks_url":"https://api.github.com/repos/blakeparkinson/sports2/forks","keys_url":"https://api.github.com/repos/blakeparkinson/sports2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blakeparkinson/sports2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blakeparkinson/sports2/teams","hooks_url":"https://api.github.com/repos/blakeparkinson/sports2/hooks","issue_events_url":"https://api.github.com/repos/blakeparkinson/sports2/issues/events{/number}","events_url":"https://api.github.com/repos/blakeparkinson/sports2/events","assignees_url":"https://api.github.com/repos/blakeparkinson/sports2/assignees{/user}","branches_url":"https://api.github.com/repos/blakeparkinson/sports2/branches{/branch}","tags_url":"https://api.github.com/repos/blakeparkinson/sports2/tags","blobs_url":"https://api.github.com/repos/blakeparkinson/sports2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blakeparkinson/sports2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blakeparkinson/sports2/git/refs{/sha}","trees_url":"https://api.github.com/repos/blakeparkinson/sports2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blakeparkinson/sports2/statuses/{sha}","languages_url":"https://api.github.com/repos/blakeparkinson/sports2/languages","stargazers_url":"https://api.github.com/repos/blakeparkinson/sports2/stargazers","contributors_url":"https://api.github.com/repos/blakeparkinson/sports2/contributors","subscribers_url":"https://api.github.com/repos/blakeparkinson/sports2/subscribers","subscription_url":"https://api.github.com/repos/blakeparkinson/sports2/subscription","commits_url":"https://api.github.com/repos/blakeparkinson/sports2/commits{/sha}","git_commits_url":"https://api.github.com/repos/blakeparkinson/sports2/git/commits{/sha}","comments_url":"https://api.github.com/repos/blakeparkinson/sports2/comments{/number}","issue_comment_url":"https://api.github.com/repos/blakeparkinson/sports2/issues/comments/{number}","contents_url":"https://api.github.com/repos/blakeparkinson/sports2/contents/{+path}","compare_url":"https://api.github.com/repos/blakeparkinson/sports2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blakeparkinson/sports2/merges","archive_url":"https://api.github.com/repos/blakeparkinson/sports2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blakeparkinson/sports2/downloads","issues_url":"https://api.github.com/repos/blakeparkinson/sports2/issues{/number}","pulls_url":"https://api.github.com/repos/blakeparkinson/sports2/pulls{/number}","milestones_url":"https://api.github.com/repos/blakeparkinson/sports2/milestones{/number}","notifications_url":"https://api.github.com/repos/blakeparkinson/sports2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blakeparkinson/sports2/labels{/name}","releases_url":"https://api.github.com/repos/blakeparkinson/sports2/releases{/id}","created_at":"2015-01-12T02:04:59Z","updated_at":"2015-02-12T01:42:29Z","pushed_at":"2015-02-12T03:08:05Z","git_url":"git://github.com/blakeparkinson/sports2.git","ssh_url":"git@github.com:blakeparkinson/sports2.git","clone_url":"https://github.com/blakeparkinson/sports2.git","svn_url":"https://github.com/blakeparkinson/sports2","homepage":null,"size":7797,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"blakeparkinson:master","ref":"master","sha":"dfdff48626b875e8f8d857dfe37b1ff5d765adb8","user":{"login":"blakeparkinson","id":1864277,"avatar_url":"https://avatars.githubusercontent.com/u/1864277?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeparkinson","html_url":"https://github.com/blakeparkinson","followers_url":"https://api.github.com/users/blakeparkinson/followers","following_url":"https://api.github.com/users/blakeparkinson/following{/other_user}","gists_url":"https://api.github.com/users/blakeparkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeparkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeparkinson/subscriptions","organizations_url":"https://api.github.com/users/blakeparkinson/orgs","repos_url":"https://api.github.com/users/blakeparkinson/repos","events_url":"https://api.github.com/users/blakeparkinson/events{/privacy}","received_events_url":"https://api.github.com/users/blakeparkinson/received_events","type":"User","site_admin":false},"repo":{"id":29114266,"name":"sports2","full_name":"blakeparkinson/sports2","owner":{"login":"blakeparkinson","id":1864277,"avatar_url":"https://avatars.githubusercontent.com/u/1864277?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeparkinson","html_url":"https://github.com/blakeparkinson","followers_url":"https://api.github.com/users/blakeparkinson/followers","following_url":"https://api.github.com/users/blakeparkinson/following{/other_user}","gists_url":"https://api.github.com/users/blakeparkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeparkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeparkinson/subscriptions","organizations_url":"https://api.github.com/users/blakeparkinson/orgs","repos_url":"https://api.github.com/users/blakeparkinson/repos","events_url":"https://api.github.com/users/blakeparkinson/events{/privacy}","received_events_url":"https://api.github.com/users/blakeparkinson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blakeparkinson/sports2","description":"Sports2","fork":false,"url":"https://api.github.com/repos/blakeparkinson/sports2","forks_url":"https://api.github.com/repos/blakeparkinson/sports2/forks","keys_url":"https://api.github.com/repos/blakeparkinson/sports2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blakeparkinson/sports2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blakeparkinson/sports2/teams","hooks_url":"https://api.github.com/repos/blakeparkinson/sports2/hooks","issue_events_url":"https://api.github.com/repos/blakeparkinson/sports2/issues/events{/number}","events_url":"https://api.github.com/repos/blakeparkinson/sports2/events","assignees_url":"https://api.github.com/repos/blakeparkinson/sports2/assignees{/user}","branches_url":"https://api.github.com/repos/blakeparkinson/sports2/branches{/branch}","tags_url":"https://api.github.com/repos/blakeparkinson/sports2/tags","blobs_url":"https://api.github.com/repos/blakeparkinson/sports2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blakeparkinson/sports2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blakeparkinson/sports2/git/refs{/sha}","trees_url":"https://api.github.com/repos/blakeparkinson/sports2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blakeparkinson/sports2/statuses/{sha}","languages_url":"https://api.github.com/repos/blakeparkinson/sports2/languages","stargazers_url":"https://api.github.com/repos/blakeparkinson/sports2/stargazers","contributors_url":"https://api.github.com/repos/blakeparkinson/sports2/contributors","subscribers_url":"https://api.github.com/repos/blakeparkinson/sports2/subscribers","subscription_url":"https://api.github.com/repos/blakeparkinson/sports2/subscription","commits_url":"https://api.github.com/repos/blakeparkinson/sports2/commits{/sha}","git_commits_url":"https://api.github.com/repos/blakeparkinson/sports2/git/commits{/sha}","comments_url":"https://api.github.com/repos/blakeparkinson/sports2/comments{/number}","issue_comment_url":"https://api.github.com/repos/blakeparkinson/sports2/issues/comments/{number}","contents_url":"https://api.github.com/repos/blakeparkinson/sports2/contents/{+path}","compare_url":"https://api.github.com/repos/blakeparkinson/sports2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blakeparkinson/sports2/merges","archive_url":"https://api.github.com/repos/blakeparkinson/sports2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blakeparkinson/sports2/downloads","issues_url":"https://api.github.com/repos/blakeparkinson/sports2/issues{/number}","pulls_url":"https://api.github.com/repos/blakeparkinson/sports2/pulls{/number}","milestones_url":"https://api.github.com/repos/blakeparkinson/sports2/milestones{/number}","notifications_url":"https://api.github.com/repos/blakeparkinson/sports2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blakeparkinson/sports2/labels{/name}","releases_url":"https://api.github.com/repos/blakeparkinson/sports2/releases{/id}","created_at":"2015-01-12T02:04:59Z","updated_at":"2015-02-12T01:42:29Z","pushed_at":"2015-02-12T03:08:05Z","git_url":"git://github.com/blakeparkinson/sports2.git","ssh_url":"git@github.com:blakeparkinson/sports2.git","clone_url":"https://github.com/blakeparkinson/sports2.git","svn_url":"https://github.com/blakeparkinson/sports2","homepage":null,"size":7797,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/blakeparkinson/sports2/pulls/85"},"html":{"href":"https://github.com/blakeparkinson/sports2/pull/85"},"issue":{"href":"https://api.github.com/repos/blakeparkinson/sports2/issues/85"},"comments":{"href":"https://api.github.com/repos/blakeparkinson/sports2/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/blakeparkinson/sports2/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/blakeparkinson/sports2/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/blakeparkinson/sports2/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/blakeparkinson/sports2/statuses/85fca36000856bfe5ae94500d4a57a6ad4c1fbbd"}}}}