{"action":"created","comment":{"url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls/comments/71599088","id":71599088,"diff_hunk":"@@ -87,6 +83,15 @@ def parse_map(map_dict):\n     cells = map_dict['responses']['GET_MAP_OBJECTS']['map_cells']\n     for cell in cells:\n         for p in cell.get('wild_pokemons', []):\n+            pokemon_name = get_pokemon_name(p['pokemon_data']['pokemon_id'])\n+            pokemon_id = str(p['pokemon_data']['pokemon_id'])\n+            if args.ignore:\n+                if pokemon_name in args.ignore or pokemon_id in args.ignore:\n+                    continue\n+            if args.only:\n+                if pokemon_name not in args.only and pokemon_id not in args.only:\n+                    continue\n+            play()","path":"pogom/models.py","position":38,"original_position":38,"commit_id":"e806e0f5ff2dd5362f9eae2d0af4edc12eae83ef","original_commit_id":"e806e0f5ff2dd5362f9eae2d0af4edc12eae83ef","user":{"login":"MonkeyLeeT","id":6754057,"avatar_url":"https://avatars.githubusercontent.com/u/6754057?v=3","gravatar_id":"","url":"https://api.github.com/users/MonkeyLeeT","html_url":"https://github.com/MonkeyLeeT","followers_url":"https://api.github.com/users/MonkeyLeeT/followers","following_url":"https://api.github.com/users/MonkeyLeeT/following{/other_user}","gists_url":"https://api.github.com/users/MonkeyLeeT/gists{/gist_id}","starred_url":"https://api.github.com/users/MonkeyLeeT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MonkeyLeeT/subscriptions","organizations_url":"https://api.github.com/users/MonkeyLeeT/orgs","repos_url":"https://api.github.com/users/MonkeyLeeT/repos","events_url":"https://api.github.com/users/MonkeyLeeT/events{/privacy}","received_events_url":"https://api.github.com/users/MonkeyLeeT/received_events","type":"User","site_admin":false},"body":"Why do you wanna move ignore/only checking logics here? Is there any reason and did you test with ignore/only lists of Pokemon names/ids (also mixed if possible?)","created_at":"2016-07-20T20:20:47Z","updated_at":"2016-07-20T20:20:47Z","html_url":"https://github.com/AHAAAAAAA/PokemonGo-Map/pull/631#discussion_r71599088","pull_request_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls/631","_links":{"self":{"href":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls/comments/71599088"},"html":{"href":"https://github.com/AHAAAAAAA/PokemonGo-Map/pull/631#discussion_r71599088"},"pull_request":{"href":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls/631"}}},"pull_request":{"url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls/631","id":78202948,"html_url":"https://github.com/AHAAAAAAA/PokemonGo-Map/pull/631","diff_url":"https://github.com/AHAAAAAAA/PokemonGo-Map/pull/631.diff","patch_url":"https://github.com/AHAAAAAAA/PokemonGo-Map/pull/631.patch","issue_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/issues/631","number":631,"state":"open","locked":false,"title":"Display sound as an alert when a Pokemon appears","user":{"login":"NgJason","id":6984333,"avatar_url":"https://avatars.githubusercontent.com/u/6984333?v=3","gravatar_id":"","url":"https://api.github.com/users/NgJason","html_url":"https://github.com/NgJason","followers_url":"https://api.github.com/users/NgJason/followers","following_url":"https://api.github.com/users/NgJason/following{/other_user}","gists_url":"https://api.github.com/users/NgJason/gists{/gist_id}","starred_url":"https://api.github.com/users/NgJason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NgJason/subscriptions","organizations_url":"https://api.github.com/users/NgJason/orgs","repos_url":"https://api.github.com/users/NgJason/repos","events_url":"https://api.github.com/users/NgJason/events{/privacy}","received_events_url":"https://api.github.com/users/NgJason/received_events","type":"User","site_admin":false},"body":"## Description\r\nPlay sound to alert the user via console when a desire Pokemon is discovered.\r\n-- work in progress: play sound via browser. Will implement after -ar is implemented. \r\n\r\n!!! Move the -only and -ignore code down to before InsertQuery.\r\n\r\nUsage:\r\npip install --upgrade -r requirements.tx\r\nTo activate audio for console, add -s flag.\r\n\r\n## Motivation and Context\r\nThis is especially useful for users who multitask and have this program run in the background.\r\nhttps://github.com/AHAAAAAAA/PokemonGo-Map/pull/470\r\n\r\n## How Has This Been Tested?\r\nExecuted program locally.\r\n\r\n## Screenshots (if appropriate):\r\n\r\n## Types of changes\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n- [x] My code follows the code style of this project.\r\n- [x] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n","created_at":"2016-07-20T19:14:51Z","updated_at":"2016-07-20T20:20:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f61433b7191fe8b0ee48e511f936d80c0ff6cf34","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls/631/commits","review_comments_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls/631/comments","review_comment_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/issues/631/comments","statuses_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/statuses/e806e0f5ff2dd5362f9eae2d0af4edc12eae83ef","head":{"label":"NgJason:audio-alert-dev","ref":"audio-alert-dev","sha":"e806e0f5ff2dd5362f9eae2d0af4edc12eae83ef","user":{"login":"NgJason","id":6984333,"avatar_url":"https://avatars.githubusercontent.com/u/6984333?v=3","gravatar_id":"","url":"https://api.github.com/users/NgJason","html_url":"https://github.com/NgJason","followers_url":"https://api.github.com/users/NgJason/followers","following_url":"https://api.github.com/users/NgJason/following{/other_user}","gists_url":"https://api.github.com/users/NgJason/gists{/gist_id}","starred_url":"https://api.github.com/users/NgJason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NgJason/subscriptions","organizations_url":"https://api.github.com/users/NgJason/orgs","repos_url":"https://api.github.com/users/NgJason/repos","events_url":"https://api.github.com/users/NgJason/events{/privacy}","received_events_url":"https://api.github.com/users/NgJason/received_events","type":"User","site_admin":false},"repo":{"id":63685315,"name":"PokemonGo-Map","full_name":"NgJason/PokemonGo-Map","owner":{"login":"NgJason","id":6984333,"avatar_url":"https://avatars.githubusercontent.com/u/6984333?v=3","gravatar_id":"","url":"https://api.github.com/users/NgJason","html_url":"https://github.com/NgJason","followers_url":"https://api.github.com/users/NgJason/followers","following_url":"https://api.github.com/users/NgJason/following{/other_user}","gists_url":"https://api.github.com/users/NgJason/gists{/gist_id}","starred_url":"https://api.github.com/users/NgJason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NgJason/subscriptions","organizations_url":"https://api.github.com/users/NgJason/orgs","repos_url":"https://api.github.com/users/NgJason/repos","events_url":"https://api.github.com/users/NgJason/events{/privacy}","received_events_url":"https://api.github.com/users/NgJason/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NgJason/PokemonGo-Map","description":"Live visualization of all the pokemon in your area... and more!","fork":true,"url":"https://api.github.com/repos/NgJason/PokemonGo-Map","forks_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/forks","keys_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/teams","hooks_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/hooks","issue_events_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/issues/events{/number}","events_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/events","assignees_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/assignees{/user}","branches_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/branches{/branch}","tags_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/tags","blobs_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/git/refs{/sha}","trees_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/statuses/{sha}","languages_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/languages","stargazers_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/stargazers","contributors_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/contributors","subscribers_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/subscribers","subscription_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/subscription","commits_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/commits{/sha}","git_commits_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/git/commits{/sha}","comments_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/comments{/number}","issue_comment_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/issues/comments{/number}","contents_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/contents/{+path}","compare_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/merges","archive_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/downloads","issues_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/issues{/number}","pulls_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/pulls{/number}","milestones_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/milestones{/number}","notifications_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/labels{/name}","releases_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/releases{/id}","deployments_url":"https://api.github.com/repos/NgJason/PokemonGo-Map/deployments","created_at":"2016-07-19T10:41:08Z","updated_at":"2016-07-19T10:41:10Z","pushed_at":"2016-07-20T19:24:09Z","git_url":"git://github.com/NgJason/PokemonGo-Map.git","ssh_url":"git@github.com:NgJason/PokemonGo-Map.git","clone_url":"https://github.com/NgJason/PokemonGo-Map.git","svn_url":"https://github.com/NgJason/PokemonGo-Map","homepage":"","size":10929,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"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":"AHAAAAAAA:develop","ref":"develop","sha":"a5d00fc0cdb3cd6af7d6acd08d63db442f6499f6","user":{"login":"AHAAAAAAA","id":1760334,"avatar_url":"https://avatars.githubusercontent.com/u/1760334?v=3","gravatar_id":"","url":"https://api.github.com/users/AHAAAAAAA","html_url":"https://github.com/AHAAAAAAA","followers_url":"https://api.github.com/users/AHAAAAAAA/followers","following_url":"https://api.github.com/users/AHAAAAAAA/following{/other_user}","gists_url":"https://api.github.com/users/AHAAAAAAA/gists{/gist_id}","starred_url":"https://api.github.com/users/AHAAAAAAA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AHAAAAAAA/subscriptions","organizations_url":"https://api.github.com/users/AHAAAAAAA/orgs","repos_url":"https://api.github.com/users/AHAAAAAAA/repos","events_url":"https://api.github.com/users/AHAAAAAAA/events{/privacy}","received_events_url":"https://api.github.com/users/AHAAAAAAA/received_events","type":"User","site_admin":false},"repo":{"id":63488276,"name":"PokemonGo-Map","full_name":"AHAAAAAAA/PokemonGo-Map","owner":{"login":"AHAAAAAAA","id":1760334,"avatar_url":"https://avatars.githubusercontent.com/u/1760334?v=3","gravatar_id":"","url":"https://api.github.com/users/AHAAAAAAA","html_url":"https://github.com/AHAAAAAAA","followers_url":"https://api.github.com/users/AHAAAAAAA/followers","following_url":"https://api.github.com/users/AHAAAAAAA/following{/other_user}","gists_url":"https://api.github.com/users/AHAAAAAAA/gists{/gist_id}","starred_url":"https://api.github.com/users/AHAAAAAAA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AHAAAAAAA/subscriptions","organizations_url":"https://api.github.com/users/AHAAAAAAA/orgs","repos_url":"https://api.github.com/users/AHAAAAAAA/repos","events_url":"https://api.github.com/users/AHAAAAAAA/events{/privacy}","received_events_url":"https://api.github.com/users/AHAAAAAAA/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AHAAAAAAA/PokemonGo-Map","description":"Live visualization of all the pokemon in your area... and more!","fork":false,"url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map","forks_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/forks","keys_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/teams","hooks_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/hooks","issue_events_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/issues/events{/number}","events_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/events","assignees_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/assignees{/user}","branches_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/branches{/branch}","tags_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/tags","blobs_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/git/refs{/sha}","trees_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/statuses/{sha}","languages_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/languages","stargazers_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/stargazers","contributors_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/contributors","subscribers_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/subscribers","subscription_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/subscription","commits_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/commits{/sha}","git_commits_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/git/commits{/sha}","comments_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/comments{/number}","issue_comment_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/issues/comments{/number}","contents_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/contents/{+path}","compare_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/merges","archive_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/downloads","issues_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/issues{/number}","pulls_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls{/number}","milestones_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/milestones{/number}","notifications_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/labels{/name}","releases_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/releases{/id}","deployments_url":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/deployments","created_at":"2016-07-16T15:06:33Z","updated_at":"2016-07-20T20:20:47Z","pushed_at":"2016-07-20T20:18:20Z","git_url":"git://github.com/AHAAAAAAA/PokemonGo-Map.git","ssh_url":"git@github.com:AHAAAAAAA/PokemonGo-Map.git","clone_url":"https://github.com/AHAAAAAAA/PokemonGo-Map.git","svn_url":"https://github.com/AHAAAAAAA/PokemonGo-Map","homepage":"","size":112612,"stargazers_count":4015,"watchers_count":4015,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":967,"mirror_url":null,"open_issues_count":114,"forks":967,"open_issues":114,"watchers":4015,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls/631"},"html":{"href":"https://github.com/AHAAAAAAA/PokemonGo-Map/pull/631"},"issue":{"href":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/issues/631"},"comments":{"href":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/issues/631/comments"},"review_comments":{"href":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls/631/comments"},"review_comment":{"href":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/pulls/631/commits"},"statuses":{"href":"https://api.github.com/repos/AHAAAAAAA/PokemonGo-Map/statuses/e806e0f5ff2dd5362f9eae2d0af4edc12eae83ef"}}}}
{"actor":{"display_login":"MonkeyLeeT"}}