Skip to content

Commit d96e4f5

Browse files
authored
small max likes fix
1 parent 5701c87 commit d96e4f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instaAPI-bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def cleanup(): #logout and exit when CTRL + C is pressed
108108

109109
media_id = InstagramAPI.LastJson
110110
if max_likes_per_tag > len(media_id['items']): #check hashtag picture count
111-
max_likes_per_tag = (len(media_id)['items'])
111+
max_likes_per_tag = len(media_id['items'])
112112

113113
likes_per_tag = random.randint(min_likes_per_tag,max_likes_per_tag)
114114
for element in media_id['items'][:likes_per_tag+1]:

0 commit comments

Comments
 (0)