Don't use lower case

main2
Bob Mottram 2019-10-30 21:44:16 +00:00
parent 6a8c014cba
commit ebea9dd805
1 changed files with 3 additions and 2 deletions

View File

@ -150,8 +150,8 @@ def unfollowPerson(baseDir: str,nickname: str, domain: str, \
""" """
if ':' in domain: if ':' in domain:
domain=domain.split(':')[0] domain=domain.split(':')[0]
handle=nickname.lower()+'@'+domain.lower() handle=nickname+'@'+domain
handleToUnfollow=followNickname.lower()+'@'+followDomain.lower() handleToUnfollow=followNickname+'@'+followDomain
if not os.path.isdir(baseDir+'/accounts'): if not os.path.isdir(baseDir+'/accounts'):
os.mkdir(baseDir+'/accounts') os.mkdir(baseDir+'/accounts')
if not os.path.isdir(baseDir+'/accounts/'+handle): if not os.path.isdir(baseDir+'/accounts/'+handle):
@ -171,6 +171,7 @@ def unfollowPerson(baseDir: str,nickname: str, domain: str, \
for line in lines: for line in lines:
if line.strip("\n") != handleToUnfollow: if line.strip("\n") != handleToUnfollow:
f.write(line) f.write(line)
return True
def unfollowerOfPerson(baseDir: str,nickname: str,domain: str, \ def unfollowerOfPerson(baseDir: str,nickname: str,domain: str, \
followerNickname: str,followerDomain: str, \ followerNickname: str,followerDomain: str, \