Set limit to max 50, better work around?

master
Lasse Edfast 4 years ago
parent 48a35f6e22
commit cb5821905a
  1. 7
      facebook/scrapers.py

@ -281,8 +281,13 @@ def check_picture(url_picture, user, profile):
# Addera bilden till arrango
picture.add_to_db()
if picture.no_reactions > 50: # TODO Går det här att komma runt?
no_reactions = 50
else:
no_reactions = picture.no_reactions
url_limit = url_bas + url_limit.replace(
"limit=" + str(limit), "limit=" + str(picture.no_reactions)
"limit=" + str(limit), "limit=" + str(no_reactions)
)
try:

Loading…
Cancel
Save