Skip to content

Commit

Permalink
Adding if condition to unfollow_util.py (#6182)
Browse files Browse the repository at this point in the history
  • Loading branch information
tg1482 committed Dec 7, 2023
1 parent 696c6f9 commit f9b9219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion instapy/unfollow_util.py
Expand Up @@ -822,7 +822,8 @@ def get_users_through_dialog_with_graphql(
random.shuffle(followers_list)

# get real amount
followers_list = random.sample(followers_list, real_amount)
if len(followers_list) > real_amount:
followers_list = random.sample(followers_list, real_amount)

for i, user in enumerate(followers_list):
logger.info(
Expand Down

0 comments on commit f9b9219

Please sign in to comment.