From 8c520ea42d6f9298ce4162571b659cb5907f0294 Mon Sep 17 00:00:00 2001 From: Anon Date: Thu, 13 Oct 2022 17:23:52 -0700 Subject: [PATCH] Append file correction --- src/yandere_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yandere_bot.py b/src/yandere_bot.py index b62640d..973ec58 100644 --- a/src/yandere_bot.py +++ b/src/yandere_bot.py @@ -158,7 +158,7 @@ class YandereBot: def blacklist(self, picked): self.lenBlacklist += 1 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) # load_pictures will return a list of YanHashObj() with a blacklist(s) applied