{"action":"created","comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments/79599664","id":79599664,"diff_hunk":"@@ -508,8 +508,8 @@ def get_evolution_plan(self, family_id, family_list, keep, try_evolve, try_upgra\n             full_upgrade_candy_cost = 0\n             full_upgrade_stardust_cost = 0\n \n-            for i in range(pokemon.level, upgrade_level, 0.5):\n-                upgrade_cost = self.pokemon_upgrade_cost[2 * (i - 1)]\n+            for i in range(int(pokemon.level * 2), int(upgrade_level * 2)):\n+                upgrade_cost = self.pokemon_upgrade_cost[i - 2]","path":"pokemongo_bot/cell_workers/pokemon_optimizer.py","position":7,"original_position":7,"commit_id":"ef2e9ea381e2ca5d7a748e6d378aaa7d8f5a2dcb","original_commit_id":"ef2e9ea381e2ca5d7a748e6d378aaa7d8f5a2dcb","user":{"login":"DBa2016","id":20729632,"avatar_url":"https://avatars.githubusercontent.com/u/20729632?v=3","gravatar_id":"","url":"https://api.github.com/users/DBa2016","html_url":"https://github.com/DBa2016","followers_url":"https://api.github.com/users/DBa2016/followers","following_url":"https://api.github.com/users/DBa2016/following{/other_user}","gists_url":"https://api.github.com/users/DBa2016/gists{/gist_id}","starred_url":"https://api.github.com/users/DBa2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DBa2016/subscriptions","organizations_url":"https://api.github.com/users/DBa2016/orgs","repos_url":"https://api.github.com/users/DBa2016/repos","events_url":"https://api.github.com/users/DBa2016/events{/privacy}","received_events_url":"https://api.github.com/users/DBa2016/received_events","type":"User","site_admin":false},"body":"what kind of crash is it fixing? I don't see any difference between old and new code - it looks exactly the same (steps are twice as big, but \"*2\" is omitted when the couner variable is used, so...)\r\n\r\nCan you show the logfile with the crash?","created_at":"2016-09-20T12:37:17Z","updated_at":"2016-09-20T12:37:34Z","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/5564#discussion_r79599664","pull_request_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/5564","_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments/79599664"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/5564#discussion_r79599664"},"pull_request":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/5564"}}},"pull_request":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/5564","id":85962437,"html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/5564","diff_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/5564.diff","patch_url":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/5564.patch","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5564","number":5564,"state":"open","locked":false,"title":"Fix crash with upgrade pokemon","user":{"login":"Anakin5","id":13438363,"avatar_url":"https://avatars.githubusercontent.com/u/13438363?v=3","gravatar_id":"","url":"https://api.github.com/users/Anakin5","html_url":"https://github.com/Anakin5","followers_url":"https://api.github.com/users/Anakin5/followers","following_url":"https://api.github.com/users/Anakin5/following{/other_user}","gists_url":"https://api.github.com/users/Anakin5/gists{/gist_id}","starred_url":"https://api.github.com/users/Anakin5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anakin5/subscriptions","organizations_url":"https://api.github.com/users/Anakin5/orgs","repos_url":"https://api.github.com/users/Anakin5/repos","events_url":"https://api.github.com/users/Anakin5/events{/privacy}","received_events_url":"https://api.github.com/users/Anakin5/received_events","type":"User","site_admin":false},"body":"I will merge quick, it is small change to fix a crash.\r\n\r\n#5563","created_at":"2016-09-20T12:09:52Z","updated_at":"2016-09-20T12:37:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0450f4978946ed704e36b497dfa0cccad034c74d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/5564/commits","review_comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/5564/comments","review_comment_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5564/comments","statuses_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/ef2e9ea381e2ca5d7a748e6d378aaa7d8f5a2dcb","head":{"label":"Anakin5:po","ref":"po","sha":"ef2e9ea381e2ca5d7a748e6d378aaa7d8f5a2dcb","user":{"login":"Anakin5","id":13438363,"avatar_url":"https://avatars.githubusercontent.com/u/13438363?v=3","gravatar_id":"","url":"https://api.github.com/users/Anakin5","html_url":"https://github.com/Anakin5","followers_url":"https://api.github.com/users/Anakin5/followers","following_url":"https://api.github.com/users/Anakin5/following{/other_user}","gists_url":"https://api.github.com/users/Anakin5/gists{/gist_id}","starred_url":"https://api.github.com/users/Anakin5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anakin5/subscriptions","organizations_url":"https://api.github.com/users/Anakin5/orgs","repos_url":"https://api.github.com/users/Anakin5/repos","events_url":"https://api.github.com/users/Anakin5/events{/privacy}","received_events_url":"https://api.github.com/users/Anakin5/received_events","type":"User","site_admin":false},"repo":{"id":68300919,"name":"PokemonGo-Bot","full_name":"Anakin5/PokemonGo-Bot","owner":{"login":"Anakin5","id":13438363,"avatar_url":"https://avatars.githubusercontent.com/u/13438363?v=3","gravatar_id":"","url":"https://api.github.com/users/Anakin5","html_url":"https://github.com/Anakin5","followers_url":"https://api.github.com/users/Anakin5/followers","following_url":"https://api.github.com/users/Anakin5/following{/other_user}","gists_url":"https://api.github.com/users/Anakin5/gists{/gist_id}","starred_url":"https://api.github.com/users/Anakin5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anakin5/subscriptions","organizations_url":"https://api.github.com/users/Anakin5/orgs","repos_url":"https://api.github.com/users/Anakin5/repos","events_url":"https://api.github.com/users/Anakin5/events{/privacy}","received_events_url":"https://api.github.com/users/Anakin5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Anakin5/PokemonGo-Bot","description":"The Pokemon Go Bot, baking with community.","fork":true,"url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot","forks_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/forks","keys_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/teams","hooks_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/hooks","issue_events_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/events","assignees_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/tags","blobs_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/languages","stargazers_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/stargazers","contributors_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/contributors","subscribers_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/subscribers","subscription_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/subscription","commits_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/merges","archive_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/downloads","issues_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/labels{/name}","releases_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/Anakin5/PokemonGo-Bot/deployments","created_at":"2016-09-15T14:23:07Z","updated_at":"2016-09-15T14:23:10Z","pushed_at":"2016-09-20T12:12:17Z","git_url":"git://github.com/Anakin5/PokemonGo-Bot.git","ssh_url":"git@github.com:Anakin5/PokemonGo-Bot.git","clone_url":"https://github.com/Anakin5/PokemonGo-Bot.git","svn_url":"https://github.com/Anakin5/PokemonGo-Bot","homepage":"http://maps.pikabot.org","size":11460,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"PokemonGoF:dev","ref":"dev","sha":"d1e983f45f4687580c2a305591dd9178477be444","user":{"login":"PokemonGoF","id":20551204,"avatar_url":"https://avatars.githubusercontent.com/u/20551204?v=3","gravatar_id":"","url":"https://api.github.com/users/PokemonGoF","html_url":"https://github.com/PokemonGoF","followers_url":"https://api.github.com/users/PokemonGoF/followers","following_url":"https://api.github.com/users/PokemonGoF/following{/other_user}","gists_url":"https://api.github.com/users/PokemonGoF/gists{/gist_id}","starred_url":"https://api.github.com/users/PokemonGoF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PokemonGoF/subscriptions","organizations_url":"https://api.github.com/users/PokemonGoF/orgs","repos_url":"https://api.github.com/users/PokemonGoF/repos","events_url":"https://api.github.com/users/PokemonGoF/events{/privacy}","received_events_url":"https://api.github.com/users/PokemonGoF/received_events","type":"Organization","site_admin":false},"repo":{"id":63752974,"name":"PokemonGo-Bot","full_name":"PokemonGoF/PokemonGo-Bot","owner":{"login":"PokemonGoF","id":20551204,"avatar_url":"https://avatars.githubusercontent.com/u/20551204?v=3","gravatar_id":"","url":"https://api.github.com/users/PokemonGoF","html_url":"https://github.com/PokemonGoF","followers_url":"https://api.github.com/users/PokemonGoF/followers","following_url":"https://api.github.com/users/PokemonGoF/following{/other_user}","gists_url":"https://api.github.com/users/PokemonGoF/gists{/gist_id}","starred_url":"https://api.github.com/users/PokemonGoF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PokemonGoF/subscriptions","organizations_url":"https://api.github.com/users/PokemonGoF/orgs","repos_url":"https://api.github.com/users/PokemonGoF/repos","events_url":"https://api.github.com/users/PokemonGoF/events{/privacy}","received_events_url":"https://api.github.com/users/PokemonGoF/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PokemonGoF/PokemonGo-Bot","description":"The Pokemon Go Bot, baking with community.","fork":false,"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot","forks_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/forks","keys_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/teams","hooks_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/hooks","issue_events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/events{/number}","events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/events","assignees_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/assignees{/user}","branches_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/branches{/branch}","tags_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/tags","blobs_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/{sha}","languages_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/languages","stargazers_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/stargazers","contributors_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/contributors","subscribers_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/subscribers","subscription_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/subscription","commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/contents/{+path}","compare_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/merges","archive_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/downloads","issues_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues{/number}","pulls_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls{/number}","milestones_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/milestones{/number}","notifications_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/labels{/name}","releases_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/releases{/id}","deployments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/deployments","created_at":"2016-07-20T05:31:53Z","updated_at":"2016-09-20T10:50:22Z","pushed_at":"2016-09-20T12:12:17Z","git_url":"git://github.com/PokemonGoF/PokemonGo-Bot.git","ssh_url":"git@github.com:PokemonGoF/PokemonGo-Bot.git","clone_url":"https://github.com/PokemonGoF/PokemonGo-Bot.git","svn_url":"https://github.com/PokemonGoF/PokemonGo-Bot","homepage":"http://maps.pikabot.org","size":18151,"stargazers_count":3793,"watchers_count":3793,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1783,"mirror_url":null,"open_issues_count":165,"forks":1783,"open_issues":165,"watchers":3793,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/5564"},"html":{"href":"https://github.com/PokemonGoF/PokemonGo-Bot/pull/5564"},"issue":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5564"},"comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5564/comments"},"review_comments":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/5564/comments"},"review_comment":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/pulls/5564/commits"},"statuses":{"href":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/statuses/ef2e9ea381e2ca5d7a748e6d378aaa7d8f5a2dcb"}}}}
{"actor":{"display_login":"DBa2016"}}