Skip to content

Commit

Permalink
Merge pull request #1797 from jsmrcaga/patch-1
Browse files Browse the repository at this point in the history
Collection Mixin: fix last_media_pk comparison
  • Loading branch information
subzeroid authored Feb 27, 2024
2 parents dfe09cd + 0e543a9 commit ab33861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instagrapi/mixins/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def collection_medias_v1(
collection_pk, max_id=next_max_id
)
for item in items:
if last_media_pk and last_media_pk == item["media"]["pk"]:
if last_media_pk and last_media_pk == item.pk:
found_last_media_pk = True
break
total_items.append(item)
Expand Down

0 comments on commit ab33861

Please sign in to comment.