From c83219b6acad0189caf99bc0d88a6881862a6898 Mon Sep 17 00:00:00 2001 From: floorcat <91414655+floorcat@users.noreply.github.com> Date: Sun, 22 Jan 2023 17:58:10 +0200 Subject: [PATCH] Remove newlines from blacklist items I noticed blacklist not working for me, this fixes it. --- scripts/prompt_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prompt_generator.py b/scripts/prompt_generator.py index 9fbf2da..dc1fac4 100644 --- a/scripts/prompt_generator.py +++ b/scripts/prompt_generator.py @@ -36,7 +36,7 @@ def get_list_blacklist(): with open(file_path, 'r') as f: # Read each line in the file and append it to the list for line in f: - things_to_black_list.append(line) + things_to_black_list.append(line.rstrip()) return things_to_black_list