Append file correction

This commit is contained in:
Anon 2022-10-13 17:23:52 -07:00
parent ead6fa4cbf
commit 8c520ea42d

View File

@ -158,7 +158,7 @@ class YandereBot:
def blacklist(self, picked): def blacklist(self, picked):
self.lenBlacklist += 1 self.lenBlacklist += 1
for path in self.settings_behavior["master_blacklist_w"]: for path in self.settings_behavior["master_blacklist_w"]:
with open(path, "w") as f: with open(path, "a") as f:
print(picked.get_full_string(), file=f) print(picked.get_full_string(), file=f)
# load_pictures will return a list of YanHashObj() with a blacklist(s) applied # load_pictures will return a list of YanHashObj() with a blacklist(s) applied