Skip to content

Commit

Permalink
Merge pull request #6114 from goedzo/PokemonGoF-Dev
Browse files Browse the repository at this point in the history
Hotfix 2 for gyms
  • Loading branch information
Jcolomar authored Jul 23, 2017
2 parents bd3c761 + 65f0d88 commit 9f3bbca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pokemongo_bot/cell_workers/gym_pokemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ def drop_pokemon_in_gym(self, gym, current_pokemons):

if lockout_time > datetime.now():
self.logger.info("Lockout time: %s" % lockout_time.strftime('%Y-%m-%d %H:%M:%S.%f'))
first_time = False
while lockout_time > datetime.now():
lockout_ending = (lockout_time-datetime.today()).seconds
sleep_m, sleep_s = divmod(lockout_ending, 60)
Expand Down

0 comments on commit 9f3bbca

Please sign in to comment.