From d8808ec2fcf7f4cc039b5e2c678ea16abb4549d7 Mon Sep 17 00:00:00 2001 From: Kolin Korr Date: Sat, 24 Sep 2016 11:13:06 -0700 Subject: [PATCH] remove pprint since it is not being used --- pokemongo_bot/cell_workers/pokemon_catch_worker.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pokemongo_bot/cell_workers/pokemon_catch_worker.py b/pokemongo_bot/cell_workers/pokemon_catch_worker.py index 5a7da31c1e..2480eac531 100644 --- a/pokemongo_bot/cell_workers/pokemon_catch_worker.py +++ b/pokemongo_bot/cell_workers/pokemon_catch_worker.py @@ -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 @@ -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 @@ -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'])