{"action":"created","comment":{"url":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls/comments/48584011","id":48584011,"diff_hunk":"@@ -0,0 +1,12 @@\n+import imdb\n+\n+from data import Actor\n+\n+\n+def search_actor(name):\n+    imdb_access = imdb.IMDb()\n+    result = imdb_access.search_person(name)\n+    actors = []\n+    if result:\n+        actors = [Actor.create(r, False) for r in result]","path":"moviesnetwork/moviesdata/services.py","position":11,"original_position":11,"commit_id":"c2e62fa69448a90e6107db50ae4d9b5b9bcd66d5","original_commit_id":"c2e62fa69448a90e6107db50ae4d9b5b9bcd66d5","user":{"login":"amaurymedeiros","id":673690,"avatar_url":"https://avatars.githubusercontent.com/u/673690?v=3","gravatar_id":"","url":"https://api.github.com/users/amaurymedeiros","html_url":"https://github.com/amaurymedeiros","followers_url":"https://api.github.com/users/amaurymedeiros/followers","following_url":"https://api.github.com/users/amaurymedeiros/following{/other_user}","gists_url":"https://api.github.com/users/amaurymedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/amaurymedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amaurymedeiros/subscriptions","organizations_url":"https://api.github.com/users/amaurymedeiros/orgs","repos_url":"https://api.github.com/users/amaurymedeiros/repos","events_url":"https://api.github.com/users/amaurymedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/amaurymedeiros/received_events","type":"User","site_admin":false},"body":"`actors = [Actor.create(r, False) for r in result] if result else []` sounds more pythonic","created_at":"2015-12-30T02:24:29Z","updated_at":"2015-12-30T02:24:29Z","html_url":"https://github.com/daniloaf/moviesnetwork/pull/12#discussion_r48584011","pull_request_url":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls/comments/48584011"},"html":{"href":"https://github.com/daniloaf/moviesnetwork/pull/12#discussion_r48584011"},"pull_request":{"href":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls/12","id":54769452,"html_url":"https://github.com/daniloaf/moviesnetwork/pull/12","diff_url":"https://github.com/daniloaf/moviesnetwork/pull/12.diff","patch_url":"https://github.com/daniloaf/moviesnetwork/pull/12.patch","issue_url":"https://api.github.com/repos/daniloaf/moviesnetwork/issues/12","number":12,"state":"open","locked":false,"title":"#11 - Creating REST service to search actors","user":{"login":"daniloaf","id":684254,"avatar_url":"https://avatars.githubusercontent.com/u/684254?v=3","gravatar_id":"","url":"https://api.github.com/users/daniloaf","html_url":"https://github.com/daniloaf","followers_url":"https://api.github.com/users/daniloaf/followers","following_url":"https://api.github.com/users/daniloaf/following{/other_user}","gists_url":"https://api.github.com/users/daniloaf/gists{/gist_id}","starred_url":"https://api.github.com/users/daniloaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniloaf/subscriptions","organizations_url":"https://api.github.com/users/daniloaf/orgs","repos_url":"https://api.github.com/users/daniloaf/repos","events_url":"https://api.github.com/users/daniloaf/events{/privacy}","received_events_url":"https://api.github.com/users/daniloaf/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-30T00:27:08Z","updated_at":"2015-12-30T02:24:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60fa4e17208290ddd4584efe4550a62979b578f4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls/12/commits","review_comments_url":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls/12/comments","review_comment_url":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls/comments{/number}","comments_url":"https://api.github.com/repos/daniloaf/moviesnetwork/issues/12/comments","statuses_url":"https://api.github.com/repos/daniloaf/moviesnetwork/statuses/c2e62fa69448a90e6107db50ae4d9b5b9bcd66d5","head":{"label":"daniloaf:issue11","ref":"issue11","sha":"c2e62fa69448a90e6107db50ae4d9b5b9bcd66d5","user":{"login":"daniloaf","id":684254,"avatar_url":"https://avatars.githubusercontent.com/u/684254?v=3","gravatar_id":"","url":"https://api.github.com/users/daniloaf","html_url":"https://github.com/daniloaf","followers_url":"https://api.github.com/users/daniloaf/followers","following_url":"https://api.github.com/users/daniloaf/following{/other_user}","gists_url":"https://api.github.com/users/daniloaf/gists{/gist_id}","starred_url":"https://api.github.com/users/daniloaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniloaf/subscriptions","organizations_url":"https://api.github.com/users/daniloaf/orgs","repos_url":"https://api.github.com/users/daniloaf/repos","events_url":"https://api.github.com/users/daniloaf/events{/privacy}","received_events_url":"https://api.github.com/users/daniloaf/received_events","type":"User","site_admin":false},"repo":{"id":45132404,"name":"moviesnetwork","full_name":"daniloaf/moviesnetwork","owner":{"login":"daniloaf","id":684254,"avatar_url":"https://avatars.githubusercontent.com/u/684254?v=3","gravatar_id":"","url":"https://api.github.com/users/daniloaf","html_url":"https://github.com/daniloaf","followers_url":"https://api.github.com/users/daniloaf/followers","following_url":"https://api.github.com/users/daniloaf/following{/other_user}","gists_url":"https://api.github.com/users/daniloaf/gists{/gist_id}","starred_url":"https://api.github.com/users/daniloaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniloaf/subscriptions","organizations_url":"https://api.github.com/users/daniloaf/orgs","repos_url":"https://api.github.com/users/daniloaf/repos","events_url":"https://api.github.com/users/daniloaf/events{/privacy}","received_events_url":"https://api.github.com/users/daniloaf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daniloaf/moviesnetwork","description":"","fork":false,"url":"https://api.github.com/repos/daniloaf/moviesnetwork","forks_url":"https://api.github.com/repos/daniloaf/moviesnetwork/forks","keys_url":"https://api.github.com/repos/daniloaf/moviesnetwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daniloaf/moviesnetwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daniloaf/moviesnetwork/teams","hooks_url":"https://api.github.com/repos/daniloaf/moviesnetwork/hooks","issue_events_url":"https://api.github.com/repos/daniloaf/moviesnetwork/issues/events{/number}","events_url":"https://api.github.com/repos/daniloaf/moviesnetwork/events","assignees_url":"https://api.github.com/repos/daniloaf/moviesnetwork/assignees{/user}","branches_url":"https://api.github.com/repos/daniloaf/moviesnetwork/branches{/branch}","tags_url":"https://api.github.com/repos/daniloaf/moviesnetwork/tags","blobs_url":"https://api.github.com/repos/daniloaf/moviesnetwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daniloaf/moviesnetwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daniloaf/moviesnetwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/daniloaf/moviesnetwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daniloaf/moviesnetwork/statuses/{sha}","languages_url":"https://api.github.com/repos/daniloaf/moviesnetwork/languages","stargazers_url":"https://api.github.com/repos/daniloaf/moviesnetwork/stargazers","contributors_url":"https://api.github.com/repos/daniloaf/moviesnetwork/contributors","subscribers_url":"https://api.github.com/repos/daniloaf/moviesnetwork/subscribers","subscription_url":"https://api.github.com/repos/daniloaf/moviesnetwork/subscription","commits_url":"https://api.github.com/repos/daniloaf/moviesnetwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/daniloaf/moviesnetwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/daniloaf/moviesnetwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/daniloaf/moviesnetwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/daniloaf/moviesnetwork/contents/{+path}","compare_url":"https://api.github.com/repos/daniloaf/moviesnetwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daniloaf/moviesnetwork/merges","archive_url":"https://api.github.com/repos/daniloaf/moviesnetwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daniloaf/moviesnetwork/downloads","issues_url":"https://api.github.com/repos/daniloaf/moviesnetwork/issues{/number}","pulls_url":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls{/number}","milestones_url":"https://api.github.com/repos/daniloaf/moviesnetwork/milestones{/number}","notifications_url":"https://api.github.com/repos/daniloaf/moviesnetwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daniloaf/moviesnetwork/labels{/name}","releases_url":"https://api.github.com/repos/daniloaf/moviesnetwork/releases{/id}","created_at":"2015-10-28T18:10:22Z","updated_at":"2015-12-04T00:09:03Z","pushed_at":"2015-12-30T01:35:58Z","git_url":"git://github.com/daniloaf/moviesnetwork.git","ssh_url":"git@github.com:daniloaf/moviesnetwork.git","clone_url":"https://github.com/daniloaf/moviesnetwork.git","svn_url":"https://github.com/daniloaf/moviesnetwork","homepage":null,"size":16,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"daniloaf:master","ref":"master","sha":"b84c79cf9d24cdf8854b12832c950a4fc2e11949","user":{"login":"daniloaf","id":684254,"avatar_url":"https://avatars.githubusercontent.com/u/684254?v=3","gravatar_id":"","url":"https://api.github.com/users/daniloaf","html_url":"https://github.com/daniloaf","followers_url":"https://api.github.com/users/daniloaf/followers","following_url":"https://api.github.com/users/daniloaf/following{/other_user}","gists_url":"https://api.github.com/users/daniloaf/gists{/gist_id}","starred_url":"https://api.github.com/users/daniloaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniloaf/subscriptions","organizations_url":"https://api.github.com/users/daniloaf/orgs","repos_url":"https://api.github.com/users/daniloaf/repos","events_url":"https://api.github.com/users/daniloaf/events{/privacy}","received_events_url":"https://api.github.com/users/daniloaf/received_events","type":"User","site_admin":false},"repo":{"id":45132404,"name":"moviesnetwork","full_name":"daniloaf/moviesnetwork","owner":{"login":"daniloaf","id":684254,"avatar_url":"https://avatars.githubusercontent.com/u/684254?v=3","gravatar_id":"","url":"https://api.github.com/users/daniloaf","html_url":"https://github.com/daniloaf","followers_url":"https://api.github.com/users/daniloaf/followers","following_url":"https://api.github.com/users/daniloaf/following{/other_user}","gists_url":"https://api.github.com/users/daniloaf/gists{/gist_id}","starred_url":"https://api.github.com/users/daniloaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniloaf/subscriptions","organizations_url":"https://api.github.com/users/daniloaf/orgs","repos_url":"https://api.github.com/users/daniloaf/repos","events_url":"https://api.github.com/users/daniloaf/events{/privacy}","received_events_url":"https://api.github.com/users/daniloaf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daniloaf/moviesnetwork","description":"","fork":false,"url":"https://api.github.com/repos/daniloaf/moviesnetwork","forks_url":"https://api.github.com/repos/daniloaf/moviesnetwork/forks","keys_url":"https://api.github.com/repos/daniloaf/moviesnetwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daniloaf/moviesnetwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daniloaf/moviesnetwork/teams","hooks_url":"https://api.github.com/repos/daniloaf/moviesnetwork/hooks","issue_events_url":"https://api.github.com/repos/daniloaf/moviesnetwork/issues/events{/number}","events_url":"https://api.github.com/repos/daniloaf/moviesnetwork/events","assignees_url":"https://api.github.com/repos/daniloaf/moviesnetwork/assignees{/user}","branches_url":"https://api.github.com/repos/daniloaf/moviesnetwork/branches{/branch}","tags_url":"https://api.github.com/repos/daniloaf/moviesnetwork/tags","blobs_url":"https://api.github.com/repos/daniloaf/moviesnetwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daniloaf/moviesnetwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daniloaf/moviesnetwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/daniloaf/moviesnetwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daniloaf/moviesnetwork/statuses/{sha}","languages_url":"https://api.github.com/repos/daniloaf/moviesnetwork/languages","stargazers_url":"https://api.github.com/repos/daniloaf/moviesnetwork/stargazers","contributors_url":"https://api.github.com/repos/daniloaf/moviesnetwork/contributors","subscribers_url":"https://api.github.com/repos/daniloaf/moviesnetwork/subscribers","subscription_url":"https://api.github.com/repos/daniloaf/moviesnetwork/subscription","commits_url":"https://api.github.com/repos/daniloaf/moviesnetwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/daniloaf/moviesnetwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/daniloaf/moviesnetwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/daniloaf/moviesnetwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/daniloaf/moviesnetwork/contents/{+path}","compare_url":"https://api.github.com/repos/daniloaf/moviesnetwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daniloaf/moviesnetwork/merges","archive_url":"https://api.github.com/repos/daniloaf/moviesnetwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daniloaf/moviesnetwork/downloads","issues_url":"https://api.github.com/repos/daniloaf/moviesnetwork/issues{/number}","pulls_url":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls{/number}","milestones_url":"https://api.github.com/repos/daniloaf/moviesnetwork/milestones{/number}","notifications_url":"https://api.github.com/repos/daniloaf/moviesnetwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daniloaf/moviesnetwork/labels{/name}","releases_url":"https://api.github.com/repos/daniloaf/moviesnetwork/releases{/id}","created_at":"2015-10-28T18:10:22Z","updated_at":"2015-12-04T00:09:03Z","pushed_at":"2015-12-30T01:35:58Z","git_url":"git://github.com/daniloaf/moviesnetwork.git","ssh_url":"git@github.com:daniloaf/moviesnetwork.git","clone_url":"https://github.com/daniloaf/moviesnetwork.git","svn_url":"https://github.com/daniloaf/moviesnetwork","homepage":null,"size":16,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls/12"},"html":{"href":"https://github.com/daniloaf/moviesnetwork/pull/12"},"issue":{"href":"https://api.github.com/repos/daniloaf/moviesnetwork/issues/12"},"comments":{"href":"https://api.github.com/repos/daniloaf/moviesnetwork/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/daniloaf/moviesnetwork/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/daniloaf/moviesnetwork/statuses/c2e62fa69448a90e6107db50ae4d9b5b9bcd66d5"}}}}