{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/1669","repository_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map","labels_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/1669/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/1669/comments","events_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/1669/events","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/issues/1669","id":198373033,"number":1669,"title":"-Speed Initial Scan constantly retrying on 0/0/0 Scans","user":{"login":"bbdoc","id":23477802,"avatar_url":"https://avatars.githubusercontent.com/u/23477802?v=3","gravatar_id":"","url":"https://api.github.com/users/bbdoc","html_url":"https://github.com/bbdoc","followers_url":"https://api.github.com/users/bbdoc/followers","following_url":"https://api.github.com/users/bbdoc/following{/other_user}","gists_url":"https://api.github.com/users/bbdoc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbdoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbdoc/subscriptions","organizations_url":"https://api.github.com/users/bbdoc/orgs","repos_url":"https://api.github.com/users/bbdoc/repos","events_url":"https://api.github.com/users/bbdoc/events{/privacy}","received_events_url":"https://api.github.com/users/bbdoc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-01-02T19:27:53Z","updated_at":"2017-01-03T12:37:08Z","closed_at":null,"body":"\r\n## Expected Behavior\r\n\r\nSpeedscan Initial Scan should be able to recognize that some zones simply have no stops/pokemons/gyms, which frequently happens in rural areas. After a few 0/0/0 scans, initial scan should consider the cell as empty. \r\n\r\n## Current Behavior\r\n\r\nAt the moment, it simply puts the cell back in queue and rescans.\r\n\r\nExample : \r\n\r\n```\r\nBad scan. Parsing found 0/0/0 pokemons/pokestops/gyms\r\nCommon causes: captchas, IP bans, or using -ng and -nk arguments\r\nPutting back step 284 in queue\r\n```\r\n\r\n## Steps to Reproduce (for bugs)\r\n\r\nScan new zones with lots of empty spots\r\n\r\n## Context\r\n\r\nTrying to scan a rural area with lots of 0/0/0 zones. Initial Scan is being stuck and takes forever for a few %.\r\n\r\n\r\n## Your Environment\r\n\r\nUsing latest dev.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/comments/270105559","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/issues/1669#issuecomment-270105559","issue_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/1669","id":270105559,"user":{"login":"Zyrix","id":439510,"avatar_url":"https://avatars.githubusercontent.com/u/439510?v=3","gravatar_id":"","url":"https://api.github.com/users/Zyrix","html_url":"https://github.com/Zyrix","followers_url":"https://api.github.com/users/Zyrix/followers","following_url":"https://api.github.com/users/Zyrix/following{/other_user}","gists_url":"https://api.github.com/users/Zyrix/gists{/gist_id}","starred_url":"https://api.github.com/users/Zyrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zyrix/subscriptions","organizations_url":"https://api.github.com/users/Zyrix/orgs","repos_url":"https://api.github.com/users/Zyrix/repos","events_url":"https://api.github.com/users/Zyrix/events{/privacy}","received_events_url":"https://api.github.com/users/Zyrix/received_events","type":"User","site_admin":false},"created_at":"2017-01-03T12:37:08Z","updated_at":"2017-01-03T12:37:08Z","body":"Here is a quick fix that I'm using:\r\n`\r\n# If we had a 0/0/0 scan, then unmark as done so we can retry, and save for Statistics\r\nelif parsed['bad_scan']:\r\n                self.scans_missed_list.append(cellid(item['loc']))\r\n                item['done'] = None\r\n                if item.get('retry') is None:\r\n                    item['retry'] = 1\r\n                    log.info('Putting back step %d in queue, retry %d', item['step'], item['retry'])\r\n                elif item['retry'] < 3:\r\n                    item['retry'] += 1\r\n                    log.info('Putting back step %d in queue, retry %d', item['step'], item['retry'])\r\n                else:\r\n                    item['done'] = 'Missed'\r\n                    log.info('Giving up on step %d after 3 retries', item['step'])\r\n`\r\n\r\nIf I have some time tonight I will create a proper parameter for this and create a pull request."}}
{"actor":{"display_login":"Zyrix"}}