Skip to content

Commit

Permalink
Merge pull request #5659 from kolinkorr839/remove_pprint
Browse files Browse the repository at this point in the history
remove pprint since it is not being used
  • Loading branch information
Gobberwart authored Sep 24, 2016
2 parents f2654f8 + d8808ec commit 33ef1a0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pokemongo_bot/cell_workers/pokemon_catch_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
from datetime import datetime, timedelta
from .utils import getSeconds

from pprint import pprint


CATCH_STATUS_SUCCESS = 1
CATCH_STATUS_FAILED = 2
Expand Down Expand Up @@ -282,7 +280,7 @@ def _pokemon_matches_config(self, config, pokemon, default_logic='and'):
if pokemon_config.get('catch_above_cp',-1) >= 0:
if pokemon.cp >= pokemon_config.get('catch_above_cp'):
catch_results['cp'] = True

if pokemon_config.get('catch_below_cp',-1) >= 0:
if pokemon.cp <= pokemon_config.get('catch_below_cp'):
catch_results['cp'] = True
Expand Down Expand Up @@ -316,13 +314,13 @@ def _pokemon_matches_config(self, config, pokemon, default_logic='and'):
cr['cp'] = True
elif catch_logic == 'orand':
cr['cp'] = True,
cr['iv'] = True
cr['iv'] = True

if pokemon_config.get('catch_above_ncp',-1) >= 0: cr['ncp'] = catch_results['ncp']
if pokemon_config.get('catch_above_cp',-1) >= 0: cr['cp'] = catch_results['cp']
if pokemon_config.get('catch_below_cp',-1) >= 0: cr['cp'] = catch_results['cp']
if pokemon_config.get('catch_above_iv',-1) >= 0: cr['iv'] = catch_results['iv']

if DEBUG_ON:
print "Debug information for match rules..."
print "catch_results ncp = {}".format(catch_results['ncp'])
Expand Down

0 comments on commit 33ef1a0

Please sign in to comment.