Skip to content

Update unfollow() and validate_user_call() - #5072

Merged
breuerfelix merged 2 commits into
InstaPy:devfrom
FabrizioConrado:dev
Sep 15, 2019
Merged

Update unfollow() and validate_user_call()#5072
breuerfelix merged 2 commits into
InstaPy:devfrom
FabrizioConrado:dev

Conversation

@FabrizioConrado

Copy link
Copy Markdown
Contributor

unfollow() - Manage InstapyFollowers and nonFollowers parameters when both are True

validate_user_call() - swap order of self.skip_bio_keyword with self.dont_skip_business_categories

…ow()

When passing both parameters InstapyFollowed and nonFollowers as True to unfollow(), the second is ignored as the condition InstapyFollowed comes first. The suggestion below would ignore InstapyFollowed and base the following actions on nonFollowers (which is itself based on the InstapyFollowed list minus users that followed back at any time).

Add in unfollow_util.py, line 295:

if nonFollowers is True: InstapyFollowed = False # nonFollowers is already based on InstapyFollowed minus Followers
Managing InstapyFollowed and nonFollowers parameters = True in unfollow()

When passing both parameters InstapyFollowed and nonFollowers as True to unfollow(), the second is ignored as the condition InstapyFollowed comes first. The suggestion below would ignore InstapyFollowed and base the following actions on nonFollowers (which is itself based on the InstapyFollowed list minus users that followed back at any time).
@breuerfelix

Copy link
Copy Markdown
Collaborator

thanks again !! :)

@breuerfelix
breuerfelix merged commit 67aff76 into InstaPy:dev Sep 15, 2019
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.

2 participants