mirror of https://gitlab.com/bashrc2/epicyon
Wrong file
parent
8ca64dd736
commit
1f023214ab
|
@ -207,7 +207,8 @@ def unfollowPerson(baseDir: str, nickname: str, domain: str,
|
|||
lines = f.readlines()
|
||||
with open(filename, 'w+') as f:
|
||||
for line in lines:
|
||||
if line.strip("\n").strip("\r").lower() != handleToUnfollowLower:
|
||||
if line.strip("\n").strip("\r").lower() != \
|
||||
handleToUnfollowLower:
|
||||
f.write(line)
|
||||
|
||||
# write to an unfollowed file so that if a follow accept
|
||||
|
@ -216,7 +217,7 @@ def unfollowPerson(baseDir: str, nickname: str, domain: str,
|
|||
if os.path.isfile(unfollowedFilename):
|
||||
if handleToUnfollowLower not in \
|
||||
open(unfollowedFilename).read().lower():
|
||||
with open(filename, "a+") as f:
|
||||
with open(unfollowedFilename, "a+") as f:
|
||||
f.write(handleToUnfollow + '\n')
|
||||
else:
|
||||
with open(unfollowedFilename, "w+") as f:
|
||||
|
|
Loading…
Reference in New Issue