{"action":"created","comment":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/comments/75596422","id":75596422,"diff_hunk":"@@ -539,7 +537,7 @@ def search_worker_thread(args, account, search_items_queue, parse_lock, encrypti\n                     status['message'] = \"Waiting {} seconds for scan delay\".format(sleep_delay_remaining / 1000)\n                     time.sleep(sleep_delay_remaining / 1000)\n \n-                loop_start_time += args.scan_delay * 1000\n+                loop_start_time = int(round(time.time() * 1000))","path":"pogom/search.py","position":14,"original_position":14,"commit_id":"989cbe85ca5bb5b945271a62206fbc9b21259192","original_commit_id":"989cbe85ca5bb5b945271a62206fbc9b21259192","user":{"login":"tai-hun","id":20966956,"avatar_url":"https://avatars.githubusercontent.com/u/20966956?v=3","gravatar_id":"","url":"https://api.github.com/users/tai-hun","html_url":"https://github.com/tai-hun","followers_url":"https://api.github.com/users/tai-hun/followers","following_url":"https://api.github.com/users/tai-hun/following{/other_user}","gists_url":"https://api.github.com/users/tai-hun/gists{/gist_id}","starred_url":"https://api.github.com/users/tai-hun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tai-hun/subscriptions","organizations_url":"https://api.github.com/users/tai-hun/orgs","repos_url":"https://api.github.com/users/tai-hun/repos","events_url":"https://api.github.com/users/tai-hun/events{/privacy}","received_events_url":"https://api.github.com/users/tai-hun/received_events","type":"User","site_admin":false},"body":"loop_start_time needs to be reset after getting a new step from the queue.  Otherwise the second round of loop after pause longer than scan delay won't get delayed.  (loop end, loop_start_time = 0:00) --goes back to beginning--> (request new queue, 0:00, but paused) --15s elapsed--> (gets a new step after resume, 0:15) -> api call, done -> (calculate sleep delay remaining, = 0:00 + 0:10 - 0:15, hey it's not greater than 0 so let's pass the loop without delay) -> there comes soft ban.","created_at":"2016-08-21T14:54:26Z","updated_at":"2016-08-21T14:54:26Z","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/890#discussion_r75596422","pull_request_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/890","_links":{"self":{"href":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/comments/75596422"},"html":{"href":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/890#discussion_r75596422"},"pull_request":{"href":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/890"}}},"pull_request":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/890","id":82087856,"html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/890","diff_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/890.diff","patch_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/890.patch","issue_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/890","number":890,"state":"open","locked":false,"title":"Fix multiple delay issues.","user":{"login":"Infernoman","id":8021207,"avatar_url":"https://avatars.githubusercontent.com/u/8021207?v=3","gravatar_id":"","url":"https://api.github.com/users/Infernoman","html_url":"https://github.com/Infernoman","followers_url":"https://api.github.com/users/Infernoman/followers","following_url":"https://api.github.com/users/Infernoman/following{/other_user}","gists_url":"https://api.github.com/users/Infernoman/gists{/gist_id}","starred_url":"https://api.github.com/users/Infernoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Infernoman/subscriptions","organizations_url":"https://api.github.com/users/Infernoman/orgs","repos_url":"https://api.github.com/users/Infernoman/repos","events_url":"https://api.github.com/users/Infernoman/events{/privacy}","received_events_url":"https://api.github.com/users/Infernoman/received_events","type":"User","site_admin":false},"body":"<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n## Description\r\nFix  0,0,0 after login and re auth.\r\nFix login delay affecting scan delay.\r\nFix loop_time after the search is paused and restarted.\r\n\r\n## Motivation and Context\r\n<!--- Why is this change required? What problem does it solve? -->\r\n<!--- If it fixes an open issue, please link to the issue here. -->\r\nfixes PR #851, #828, #523, and issues #830, #683, #607, #456, #847, #462\r\n\r\n## How Has This Been Tested?\r\n<!--- Please describe in detail how you tested your changes. -->\r\n<!--- Include details of your testing environment, and the tests you ran to -->\r\n<!--- see how your change affects other areas of the code, etc. -->\r\nTested by multiple people. PR taking into account multiple PR's\r\n\r\n## Screenshots (if appropriate):\r\n\r\n## Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [x] Bug fix (non-breaking change which fixes an issue)\r\n- [ ] 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<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] My code follows the code style of this project.\r\n- [ ] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n\r\n","created_at":"2016-08-20T19:53:31Z","updated_at":"2016-08-21T14:54:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a52bbf86130c118efeb6e08a25cb90895b9e9ee9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/890/commits","review_comments_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/890/comments","review_comment_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/890/comments","statuses_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/statuses/989cbe85ca5bb5b945271a62206fbc9b21259192","head":{"label":"Infernoman:patch-8","ref":"patch-8","sha":"989cbe85ca5bb5b945271a62206fbc9b21259192","user":{"login":"Infernoman","id":8021207,"avatar_url":"https://avatars.githubusercontent.com/u/8021207?v=3","gravatar_id":"","url":"https://api.github.com/users/Infernoman","html_url":"https://github.com/Infernoman","followers_url":"https://api.github.com/users/Infernoman/followers","following_url":"https://api.github.com/users/Infernoman/following{/other_user}","gists_url":"https://api.github.com/users/Infernoman/gists{/gist_id}","starred_url":"https://api.github.com/users/Infernoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Infernoman/subscriptions","organizations_url":"https://api.github.com/users/Infernoman/orgs","repos_url":"https://api.github.com/users/Infernoman/repos","events_url":"https://api.github.com/users/Infernoman/events{/privacy}","received_events_url":"https://api.github.com/users/Infernoman/received_events","type":"User","site_admin":false},"repo":{"id":65264360,"name":"PokemonGo-Map","full_name":"Infernoman/PokemonGo-Map","owner":{"login":"Infernoman","id":8021207,"avatar_url":"https://avatars.githubusercontent.com/u/8021207?v=3","gravatar_id":"","url":"https://api.github.com/users/Infernoman","html_url":"https://github.com/Infernoman","followers_url":"https://api.github.com/users/Infernoman/followers","following_url":"https://api.github.com/users/Infernoman/following{/other_user}","gists_url":"https://api.github.com/users/Infernoman/gists{/gist_id}","starred_url":"https://api.github.com/users/Infernoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Infernoman/subscriptions","organizations_url":"https://api.github.com/users/Infernoman/orgs","repos_url":"https://api.github.com/users/Infernoman/repos","events_url":"https://api.github.com/users/Infernoman/events{/privacy}","received_events_url":"https://api.github.com/users/Infernoman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Infernoman/PokemonGo-Map","description":"🌏 Live visualization of all the pokemon in your area... and more!","fork":true,"url":"https://api.github.com/repos/Infernoman/PokemonGo-Map","forks_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/forks","keys_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/teams","hooks_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/hooks","issue_events_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/issues/events{/number}","events_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/events","assignees_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/assignees{/user}","branches_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/branches{/branch}","tags_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/tags","blobs_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/git/refs{/sha}","trees_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/statuses/{sha}","languages_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/languages","stargazers_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/stargazers","contributors_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/contributors","subscribers_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/subscribers","subscription_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/subscription","commits_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/commits{/sha}","git_commits_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/git/commits{/sha}","comments_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/comments{/number}","issue_comment_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/issues/comments{/number}","contents_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/contents/{+path}","compare_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/merges","archive_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/downloads","issues_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/issues{/number}","pulls_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/pulls{/number}","milestones_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/milestones{/number}","notifications_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/labels{/name}","releases_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/releases{/id}","deployments_url":"https://api.github.com/repos/Infernoman/PokemonGo-Map/deployments","created_at":"2016-08-09T05:00:45Z","updated_at":"2016-08-15T12:08:49Z","pushed_at":"2016-08-20T20:41:53Z","git_url":"git://github.com/Infernoman/PokemonGo-Map.git","ssh_url":"git@github.com:Infernoman/PokemonGo-Map.git","clone_url":"https://github.com/Infernoman/PokemonGo-Map.git","svn_url":"https://github.com/Infernoman/PokemonGo-Map","homepage":"","size":23414,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"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":3,"default_branch":"develop"}},"base":{"label":"PokemonGoMap:develop","ref":"develop","sha":"36659fc6eca5bf4bfcaf3080ef796d2a49cc651a","user":{"login":"PokemonGoMap","id":20848202,"avatar_url":"https://avatars.githubusercontent.com/u/20848202?v=3","gravatar_id":"","url":"https://api.github.com/users/PokemonGoMap","html_url":"https://github.com/PokemonGoMap","followers_url":"https://api.github.com/users/PokemonGoMap/followers","following_url":"https://api.github.com/users/PokemonGoMap/following{/other_user}","gists_url":"https://api.github.com/users/PokemonGoMap/gists{/gist_id}","starred_url":"https://api.github.com/users/PokemonGoMap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PokemonGoMap/subscriptions","organizations_url":"https://api.github.com/users/PokemonGoMap/orgs","repos_url":"https://api.github.com/users/PokemonGoMap/repos","events_url":"https://api.github.com/users/PokemonGoMap/events{/privacy}","received_events_url":"https://api.github.com/users/PokemonGoMap/received_events","type":"Organization","site_admin":false},"repo":{"id":64970925,"name":"PokemonGo-Map","full_name":"PokemonGoMap/PokemonGo-Map","owner":{"login":"PokemonGoMap","id":20848202,"avatar_url":"https://avatars.githubusercontent.com/u/20848202?v=3","gravatar_id":"","url":"https://api.github.com/users/PokemonGoMap","html_url":"https://github.com/PokemonGoMap","followers_url":"https://api.github.com/users/PokemonGoMap/followers","following_url":"https://api.github.com/users/PokemonGoMap/following{/other_user}","gists_url":"https://api.github.com/users/PokemonGoMap/gists{/gist_id}","starred_url":"https://api.github.com/users/PokemonGoMap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PokemonGoMap/subscriptions","organizations_url":"https://api.github.com/users/PokemonGoMap/orgs","repos_url":"https://api.github.com/users/PokemonGoMap/repos","events_url":"https://api.github.com/users/PokemonGoMap/events{/privacy}","received_events_url":"https://api.github.com/users/PokemonGoMap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PokemonGoMap/PokemonGo-Map","description":"🌏 Live visualization of all the pokemon in your area... and more!","fork":false,"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map","forks_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/forks","keys_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/teams","hooks_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/hooks","issue_events_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/events{/number}","events_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/events","assignees_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/assignees{/user}","branches_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/branches{/branch}","tags_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/tags","blobs_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/git/refs{/sha}","trees_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/statuses/{sha}","languages_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/languages","stargazers_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/stargazers","contributors_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/contributors","subscribers_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/subscribers","subscription_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/subscription","commits_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/commits{/sha}","git_commits_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/git/commits{/sha}","comments_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/comments{/number}","issue_comment_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/comments{/number}","contents_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/contents/{+path}","compare_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/merges","archive_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/downloads","issues_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues{/number}","pulls_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls{/number}","milestones_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/milestones{/number}","notifications_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/labels{/name}","releases_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/releases{/id}","deployments_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/deployments","created_at":"2016-08-04T22:18:49Z","updated_at":"2016-08-21T14:10:35Z","pushed_at":"2016-08-21T14:14:13Z","git_url":"git://github.com/PokemonGoMap/PokemonGo-Map.git","ssh_url":"git@github.com:PokemonGoMap/PokemonGo-Map.git","clone_url":"https://github.com/PokemonGoMap/PokemonGo-Map.git","svn_url":"https://github.com/PokemonGoMap/PokemonGo-Map","homepage":"","size":28572,"stargazers_count":1922,"watchers_count":1922,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":975,"mirror_url":null,"open_issues_count":147,"forks":975,"open_issues":147,"watchers":1922,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/890"},"html":{"href":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/890"},"issue":{"href":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/890"},"comments":{"href":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/890/comments"},"review_comments":{"href":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/890/comments"},"review_comment":{"href":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/890/commits"},"statuses":{"href":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/statuses/989cbe85ca5bb5b945271a62206fbc9b21259192"}}}}
{"actor":{"display_login":"tai-hun"}}