From fd067980281e3a8839878ee9e6dcb96a13512673 Mon Sep 17 00:00:00 2001 From: Holly Date: Wed, 10 Mar 2021 16:47:20 +0000 Subject: [PATCH] handle paginated follower/following lists, whoops --- mtgcardlookup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mtgcardlookup.py b/mtgcardlookup.py index 11852c0..5083926 100755 --- a/mtgcardlookup.py +++ b/mtgcardlookup.py @@ -139,8 +139,8 @@ async def get_cards(card_names): async def update_followers(c, me): log('Updating followed accounts...') - accounts_following_me = set(map(lambda a: a['id'], await c.account_followers(me))) - accounts_i_follow = set(map(lambda a: a['id'], await c.account_following(me))) + accounts_following_me = set(map(lambda a: a['id'], await c.get_all(c.account_followers(me)))) + accounts_i_follow = set(map(lambda a: a['id'], await c.get_all(c.account_following(me)))) # Accounts that follow me that I don't follow to_follow = accounts_following_me - accounts_i_follow