mirror of https://gitlab.com/bashrc2/epicyon
Filenames for followers
parent
e5eaf42a36
commit
351cb6ad14
|
@ -118,9 +118,9 @@ def getMutualsOfPerson(baseDir: str,
|
||||||
i.e. accounts which they follow and which also follow back
|
i.e. accounts which they follow and which also follow back
|
||||||
"""
|
"""
|
||||||
followers = \
|
followers = \
|
||||||
getFollowersOfPerson(baseDir, nickname, domain, 'followers')
|
getFollowersOfPerson(baseDir, nickname, domain, 'followers.txt')
|
||||||
following = \
|
following = \
|
||||||
getFollowersOfPerson(baseDir, nickname, domain, 'following')
|
getFollowersOfPerson(baseDir, nickname, domain, 'following.txt')
|
||||||
mutuals = []
|
mutuals = []
|
||||||
for handle in following:
|
for handle in following:
|
||||||
if handle in followers:
|
if handle in followers:
|
||||||
|
|
5
posts.py
5
posts.py
|
@ -3338,9 +3338,9 @@ def getNonMutualsOfPerson(baseDir: str,
|
||||||
i.e. accounts which follow you but you don't follow them
|
i.e. accounts which follow you but you don't follow them
|
||||||
"""
|
"""
|
||||||
followers = \
|
followers = \
|
||||||
getFollowersOfPerson(baseDir, nickname, domain, 'followers')
|
getFollowersOfPerson(baseDir, nickname, domain, 'followers.txt')
|
||||||
following = \
|
following = \
|
||||||
getFollowersOfPerson(baseDir, nickname, domain, 'following')
|
getFollowersOfPerson(baseDir, nickname, domain, 'following.txt')
|
||||||
nonMutuals = []
|
nonMutuals = []
|
||||||
for handle in following:
|
for handle in following:
|
||||||
if handle not in followers:
|
if handle not in followers:
|
||||||
|
@ -3357,6 +3357,7 @@ def checkDomains(session, baseDir: str,
|
||||||
"""
|
"""
|
||||||
nonMutuals = getNonMutualsOfPerson(baseDir, nickname, domain)
|
nonMutuals = getNonMutualsOfPerson(baseDir, nickname, domain)
|
||||||
if not nonMutuals:
|
if not nonMutuals:
|
||||||
|
print('No non-mutual followers were found')
|
||||||
return
|
return
|
||||||
followerWarningFilename = baseDir + '/accounts/followerWarnings.txt'
|
followerWarningFilename = baseDir + '/accounts/followerWarnings.txt'
|
||||||
updateFollowerWarnings = False
|
updateFollowerWarnings = False
|
||||||
|
|
Loading…
Reference in New Issue