{"action":"created","comment":{"url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls/comments/225009389","pull_request_review_id":164515238,"id":225009389,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTAwOTM4OQ==","diff_hunk":"@@ -1,40 +1,124 @@\n import requests\n+from config.settings import STORE_ALL_DEALS, STORE_API_URL, STORE_URL_PRODUCT\n \n+game_contentType = [\"all\", \"expansao\", \"avatar\", \"conjunto\", \"jogo\"]\n \n-def storeApiUrl():\n-    return \"https://store.playstation.com/store/api/chihiro/00_09_000/container/BR/pt/999/\"\n \n+class Store():\n \n-def allDeals():\n-    return \"STORE-MSF77008-ALLDEALS\"\n+    def totalGames(self):\n+        return str(self.url()[\"total_results\"])\n \n+    @classmethod\n+    def url(self, size=\"30\", store=STORE_ALL_DEALS, kind=game_contentType[0]):\n+        if (kind == \"all\"):\n+            return requests.get(url=STORE_API_URL+store+\"?size=\"+size).json()\n+        else:\n+            return requests.get(url=STORE_API_URL+store+\"?size=\"+size+\"&game_content_type=\"+kind).json()\n \n-game_contentType = [\"all\", \"expansao\", \"avatar\", \"conjunto\", \"jogo\"]\n-#game_contentType = [\"all\", \"Expansão\", \"Avatar\", \"Conjunto\", \"Jogo completo\"]\n+    def deals(self, code=True):\n+        deals = list()\n+        r = self.url()\n+        if (code):\n+            for product in r[\"links\"]:\n+                deals.append(product[\"name\"] + \" - \" + product[\"id\"])\n+        else:\n+            for product in r[\"links\"]:\n+                deals.append(product[\"name\"])\n+        return deals\n+\n+    def info(self, id):\n+        return requests.get(url=STORE_API_URL+id).json()\n+\n+    def product_link(self, id):","path":"src/store.py","position":39,"original_position":39,"commit_id":"e3993adaceeba84c6e7c1ddd92e5f67d35b2eec1","original_commit_id":"e3993adaceeba84c6e7c1ddd92e5f67d35b2eec1","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Redefining built-in 'id'](https://app.codacy.com/app/thiagormagalhaes/search-deals-playstation-telegram-bot/pullRequest?prid=2359769)","created_at":"2018-10-14T21:18:11Z","updated_at":"2018-10-14T21:18:11Z","html_url":"https://github.com/thiagormagalhaes/search-deals-playstation-telegram-bot/pull/20#discussion_r225009389","pull_request_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls/20","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls/comments/225009389"},"html":{"href":"https://github.com/thiagormagalhaes/search-deals-playstation-telegram-bot/pull/20#discussion_r225009389"},"pull_request":{"href":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls/20","id":222742586,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNzQyNTg2","html_url":"https://github.com/thiagormagalhaes/search-deals-playstation-telegram-bot/pull/20","diff_url":"https://github.com/thiagormagalhaes/search-deals-playstation-telegram-bot/pull/20.diff","patch_url":"https://github.com/thiagormagalhaes/search-deals-playstation-telegram-bot/pull/20.patch","issue_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/issues/20","number":20,"state":"open","locked":false,"title":"Issue 3","user":{"login":"SamuelsSantos","id":5309960,"node_id":"MDQ6VXNlcjUzMDk5NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/5309960?v=4","gravatar_id":"","url":"https://api.github.com/users/SamuelsSantos","html_url":"https://github.com/SamuelsSantos","followers_url":"https://api.github.com/users/SamuelsSantos/followers","following_url":"https://api.github.com/users/SamuelsSantos/following{/other_user}","gists_url":"https://api.github.com/users/SamuelsSantos/gists{/gist_id}","starred_url":"https://api.github.com/users/SamuelsSantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamuelsSantos/subscriptions","organizations_url":"https://api.github.com/users/SamuelsSantos/orgs","repos_url":"https://api.github.com/users/SamuelsSantos/repos","events_url":"https://api.github.com/users/SamuelsSantos/events{/privacy}","received_events_url":"https://api.github.com/users/SamuelsSantos/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-14T20:57:52Z","updated_at":"2018-10-14T21:18:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e1388bf6e11ee2818763349ae2fcd4ec67ca4e2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls/20/commits","review_comments_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls/20/comments","review_comment_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/issues/20/comments","statuses_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/statuses/e3993adaceeba84c6e7c1ddd92e5f67d35b2eec1","head":{"label":"SamuelsSantos:issue_3","ref":"issue_3","sha":"e3993adaceeba84c6e7c1ddd92e5f67d35b2eec1","user":{"login":"SamuelsSantos","id":5309960,"node_id":"MDQ6VXNlcjUzMDk5NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/5309960?v=4","gravatar_id":"","url":"https://api.github.com/users/SamuelsSantos","html_url":"https://github.com/SamuelsSantos","followers_url":"https://api.github.com/users/SamuelsSantos/followers","following_url":"https://api.github.com/users/SamuelsSantos/following{/other_user}","gists_url":"https://api.github.com/users/SamuelsSantos/gists{/gist_id}","starred_url":"https://api.github.com/users/SamuelsSantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamuelsSantos/subscriptions","organizations_url":"https://api.github.com/users/SamuelsSantos/orgs","repos_url":"https://api.github.com/users/SamuelsSantos/repos","events_url":"https://api.github.com/users/SamuelsSantos/events{/privacy}","received_events_url":"https://api.github.com/users/SamuelsSantos/received_events","type":"User","site_admin":false},"repo":{"id":152985754,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI5ODU3NTQ=","name":"search-deals-playstation-telegram-bot","full_name":"SamuelsSantos/search-deals-playstation-telegram-bot","private":false,"owner":{"login":"SamuelsSantos","id":5309960,"node_id":"MDQ6VXNlcjUzMDk5NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/5309960?v=4","gravatar_id":"","url":"https://api.github.com/users/SamuelsSantos","html_url":"https://github.com/SamuelsSantos","followers_url":"https://api.github.com/users/SamuelsSantos/followers","following_url":"https://api.github.com/users/SamuelsSantos/following{/other_user}","gists_url":"https://api.github.com/users/SamuelsSantos/gists{/gist_id}","starred_url":"https://api.github.com/users/SamuelsSantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamuelsSantos/subscriptions","organizations_url":"https://api.github.com/users/SamuelsSantos/orgs","repos_url":"https://api.github.com/users/SamuelsSantos/repos","events_url":"https://api.github.com/users/SamuelsSantos/events{/privacy}","received_events_url":"https://api.github.com/users/SamuelsSantos/received_events","type":"User","site_admin":false},"html_url":"https://github.com/SamuelsSantos/search-deals-playstation-telegram-bot","description":"Bot do Telegram para a Playstation Store em português (PlaystationStore)","fork":true,"url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot","forks_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/forks","keys_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/teams","hooks_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/hooks","issue_events_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/issues/events{/number}","events_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/events","assignees_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/assignees{/user}","branches_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/branches{/branch}","tags_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/tags","blobs_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/languages","stargazers_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/stargazers","contributors_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/contributors","subscribers_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/subscribers","subscription_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/subscription","commits_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/contents/{+path}","compare_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/merges","archive_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/downloads","issues_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/issues{/number}","pulls_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/labels{/name}","releases_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/releases{/id}","deployments_url":"https://api.github.com/repos/SamuelsSantos/search-deals-playstation-telegram-bot/deployments","created_at":"2018-10-14T14:58:23Z","updated_at":"2018-10-14T19:06:26Z","pushed_at":"2018-10-14T21:16:53Z","git_url":"git://github.com/SamuelsSantos/search-deals-playstation-telegram-bot.git","ssh_url":"git@github.com:SamuelsSantos/search-deals-playstation-telegram-bot.git","clone_url":"https://github.com/SamuelsSantos/search-deals-playstation-telegram-bot.git","svn_url":"https://github.com/SamuelsSantos/search-deals-playstation-telegram-bot","homepage":"","size":32,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"thiagormagalhaes:master","ref":"master","sha":"2202d10c1c286daa8405083310a29fdb184b2d57","user":{"login":"thiagormagalhaes","id":10358784,"node_id":"MDQ6VXNlcjEwMzU4Nzg0","avatar_url":"https://avatars1.githubusercontent.com/u/10358784?v=4","gravatar_id":"","url":"https://api.github.com/users/thiagormagalhaes","html_url":"https://github.com/thiagormagalhaes","followers_url":"https://api.github.com/users/thiagormagalhaes/followers","following_url":"https://api.github.com/users/thiagormagalhaes/following{/other_user}","gists_url":"https://api.github.com/users/thiagormagalhaes/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagormagalhaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagormagalhaes/subscriptions","organizations_url":"https://api.github.com/users/thiagormagalhaes/orgs","repos_url":"https://api.github.com/users/thiagormagalhaes/repos","events_url":"https://api.github.com/users/thiagormagalhaes/events{/privacy}","received_events_url":"https://api.github.com/users/thiagormagalhaes/received_events","type":"User","site_admin":false},"repo":{"id":151337315,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEzMzczMTU=","name":"search-deals-playstation-telegram-bot","full_name":"thiagormagalhaes/search-deals-playstation-telegram-bot","private":false,"owner":{"login":"thiagormagalhaes","id":10358784,"node_id":"MDQ6VXNlcjEwMzU4Nzg0","avatar_url":"https://avatars1.githubusercontent.com/u/10358784?v=4","gravatar_id":"","url":"https://api.github.com/users/thiagormagalhaes","html_url":"https://github.com/thiagormagalhaes","followers_url":"https://api.github.com/users/thiagormagalhaes/followers","following_url":"https://api.github.com/users/thiagormagalhaes/following{/other_user}","gists_url":"https://api.github.com/users/thiagormagalhaes/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagormagalhaes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagormagalhaes/subscriptions","organizations_url":"https://api.github.com/users/thiagormagalhaes/orgs","repos_url":"https://api.github.com/users/thiagormagalhaes/repos","events_url":"https://api.github.com/users/thiagormagalhaes/events{/privacy}","received_events_url":"https://api.github.com/users/thiagormagalhaes/received_events","type":"User","site_admin":false},"html_url":"https://github.com/thiagormagalhaes/search-deals-playstation-telegram-bot","description":"Bot do Telegram para a Playstation Store em português (PlaystationStore)","fork":false,"url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot","forks_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/forks","keys_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/teams","hooks_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/hooks","issue_events_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/issues/events{/number}","events_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/events","assignees_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/assignees{/user}","branches_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/branches{/branch}","tags_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/tags","blobs_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/languages","stargazers_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/stargazers","contributors_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/contributors","subscribers_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/subscribers","subscription_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/subscription","commits_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/contents/{+path}","compare_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/merges","archive_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/downloads","issues_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/issues{/number}","pulls_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/labels{/name}","releases_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/releases{/id}","deployments_url":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/deployments","created_at":"2018-10-02T23:32:37Z","updated_at":"2018-10-10T19:33:05Z","pushed_at":"2018-10-14T21:16:54Z","git_url":"git://github.com/thiagormagalhaes/search-deals-playstation-telegram-bot.git","ssh_url":"git@github.com:thiagormagalhaes/search-deals-playstation-telegram-bot.git","clone_url":"https://github.com/thiagormagalhaes/search-deals-playstation-telegram-bot.git","svn_url":"https://github.com/thiagormagalhaes/search-deals-playstation-telegram-bot","homepage":"","size":17,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":8,"open_issues":7,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls/20"},"html":{"href":"https://github.com/thiagormagalhaes/search-deals-playstation-telegram-bot/pull/20"},"issue":{"href":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/issues/20"},"comments":{"href":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/thiagormagalhaes/search-deals-playstation-telegram-bot/statuses/e3993adaceeba84c6e7c1ddd92e5f67d35b2eec1"}},"author_association":"NONE"}}
{"actor":{"display_login":"codacy-bot"}}