Filenames for followers

main
Bob Mottram 2020-09-25 14:33:44 +01:00
parent e5eaf42a36
commit 351cb6ad14
2 changed files with 5 additions and 4 deletions

View File

@ -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:

View File

@ -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