-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Bulktransfer improve #5995
Conversation
@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. |
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: |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
len(pokemons) -> len(transfer)
@walaoaaa1234 see my comments~ |
#5992
#5987 #5988 #5994
TODO