From 351cb6ad144e8f9c5c1473b8cb0b423573ce63ee Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 25 Sep 2020 14:33:44 +0100 Subject: [PATCH] Filenames for followers --- follow.py | 4 ++-- posts.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/follow.py b/follow.py index 014458237..f717e77a1 100644 --- a/follow.py +++ b/follow.py @@ -118,9 +118,9 @@ def getMutualsOfPerson(baseDir: str, i.e. accounts which they follow and which also follow back """ followers = \ - getFollowersOfPerson(baseDir, nickname, domain, 'followers') + getFollowersOfPerson(baseDir, nickname, domain, 'followers.txt') following = \ - getFollowersOfPerson(baseDir, nickname, domain, 'following') + getFollowersOfPerson(baseDir, nickname, domain, 'following.txt') mutuals = [] for handle in following: if handle in followers: diff --git a/posts.py b/posts.py index 9f637f84f..32709891a 100644 --- a/posts.py +++ b/posts.py @@ -3338,9 +3338,9 @@ def getNonMutualsOfPerson(baseDir: str, i.e. accounts which follow you but you don't follow them """ followers = \ - getFollowersOfPerson(baseDir, nickname, domain, 'followers') + getFollowersOfPerson(baseDir, nickname, domain, 'followers.txt') following = \ - getFollowersOfPerson(baseDir, nickname, domain, 'following') + getFollowersOfPerson(baseDir, nickname, domain, 'following.txt') nonMutuals = [] for handle in following: if handle not in followers: @@ -3357,6 +3357,7 @@ def checkDomains(session, baseDir: str, """ nonMutuals = getNonMutualsOfPerson(baseDir, nickname, domain) if not nonMutuals: + print('No non-mutual followers were found') return followerWarningFilename = baseDir + '/accounts/followerWarnings.txt' updateFollowerWarnings = False