Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulktransfer improve #5995

Merged
merged 9 commits into from
Apr 4, 2017
Merged

Bulktransfer improve #5995

merged 9 commits into from
Apr 4, 2017

Conversation

walaoaaa1234
Copy link
Contributor

@walaoaaa1234 walaoaaa1234 commented Apr 4, 2017

#5992
#5987 #5988 #5994

TODO

  • DOC

@mention-bot
Copy link

@walaoaaa1234, thanks for your PR! By analyzing the history of the files in this pull request, we identified @DeXtroTip, @mudmud2k and @anakin5 to be potential reviewers.

@walaoaaa1234 walaoaaa1234 changed the base branch from master to dev April 4, 2017 04:51
@Jcolomar Jcolomar merged commit 9e38b73 into PokemonGoF:dev Apr 4, 2017
@Jcolomar
Copy link
Contributor

Jcolomar commented Apr 4, 2017

Lets test

@@ -699,13 +699,15 @@ def transfer_pokemon(self, transfer):
4: 'ERROR_POKEMON_IS_EGG',
5: 'ERROR_POKEMON_IS_BUDDY'
}
pokemons = list(transfer)
if self.config_bulktransfer_enabled and len(pokemons) > 1:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var pokemons not found. you should change to len(transfer)

@@ -699,13 +699,15 @@ def transfer_pokemon(self, transfer):
4: 'ERROR_POKEMON_IS_EGG',
5: 'ERROR_POKEMON_IS_BUDDY'
}
pokemons = list(transfer)
if self.config_bulktransfer_enabled and len(pokemons) > 1:
while len(pokemons) > 0:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same problem. All pokemons should change to transfer

pokemon_ids = []
count = 0
transfered = []
while len(pokemons) > 0 and count < self.config_max_bulktransfer:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

len(pokemons) -> len(transfer)

@MerlionRock
Copy link
Contributor

@walaoaaa1234 see my comments~

@walaoaaa1234
Copy link
Contributor Author

#5998

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants