Skip to content

Commit

Permalink
Pgoapi purge (PokemonGoF#3106)
Browse files Browse the repository at this point in the history
* Remove unused scannedLabel() function

* Remove pogom/pgoapi if empty at startup

* use pgoapi from requirements.txt instead of copying its files

* gitignore src/

* Fixups for using mainline pgoapi

* Update pgoapi to latest HEAD

* Use get_pos_by_name from pgoapi

* Update search api for new pgoapi

* Removing cell ID's, this functionality is provided in pgoapi

* Update search for the new pgoapi (again)

* making sure we change with step location, rather than starting position

* silenced logging

* Increase scan reliability (PokemonGoF#3262)

- Handle exceptions better
 - Prevent search_workers from even fully exiting
 - High-load backoff is now backoff based instead of randomly assigned absolute
 - Logins will retry `login-retries` times before throwing an exception to
   cause the search_worker to create a new PgoAPI instance and start over

* Update pgoapi

* Show a big scary warning if user hasn't updated

* Use standard logging for this and for the check of the old pogom/pgoapi
* Automatically remove pogom/pgoapi, regardless if its empty or not.
  Its not going to be useful anymore and will cause problems.
  • Loading branch information
invisiblek authored Aug 3, 2016
1 parent f632c02 commit 59bb500
Show file tree
Hide file tree
Showing 23 changed files with 112 additions and 8,538 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ static/dist/
node_modules/
venv/
core
src/
5 changes: 1 addition & 4 deletions pogom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@
'LOCALES_DIR': 'static/dist/locales',
'ROOT_PATH': '',
'DATA_DIR': 'static/dist/data',
'GMAPS_KEY': None,
'REQ_SLEEP': 5,
'REQ_HEAVY_SLEEP': 30,
'REQ_MAX_FAILED': 5
'GMAPS_KEY': None
}
4 changes: 2 additions & 2 deletions pogom/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def parse_map(map_dict, step_location):
p['longitude'], d_t)
pokemons[p['encounter_id']] = {
'encounter_id': b64encode(str(p['encounter_id'])),
'spawnpoint_id': p['spawnpoint_id'],
'spawnpoint_id': p['spawn_point_id'],
'pokemon_id': p['pokemon_data']['pokemon_id'],
'latitude': p['latitude'],
'longitude': p['longitude'],
Expand All @@ -313,7 +313,7 @@ def parse_map(map_dict, step_location):

webhook_data = {
'encounter_id': b64encode(str(p['encounter_id'])),
'spawnpoint_id': p['spawnpoint_id'],
'spawnpoint_id': p['spawn_point_id'],
'pokemon_id': p['pokemon_data']['pokemon_id'],
'latitude': p['latitude'],
'longitude': p['longitude'],
Expand Down
5 changes: 0 additions & 5 deletions pogom/pgoapi/__init__.py

This file was deleted.

64 changes: 0 additions & 64 deletions pogom/pgoapi/auth.py

This file was deleted.

58 changes: 0 additions & 58 deletions pogom/pgoapi/auth_google.py

This file was deleted.

101 changes: 0 additions & 101 deletions pogom/pgoapi/auth_ptc.py

This file was deleted.

33 changes: 0 additions & 33 deletions pogom/pgoapi/exceptions.py

This file was deleted.

Loading

0 comments on commit 59bb500

Please sign in to comment.