From 4e7f918232e7daaf8c584613cf93ab8880a111a3 Mon Sep 17 00:00:00 2001 From: AIrjen <130234949+AIrjen@users.noreply.github.com> Date: Sun, 17 Sep 2023 08:45:04 +0200 Subject: [PATCH] added strip and lower to the antilist logic Makes it so it works on capital letters etc. --- build_dynamic_prompt.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build_dynamic_prompt.py b/build_dynamic_prompt.py index aa1896f..cc9b33b 100644 --- a/build_dynamic_prompt.py +++ b/build_dynamic_prompt.py @@ -22,10 +22,14 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all # this uses the antivalues string AND the antilist.csv emptylist = [] antilist = csv_to_list("antilist",emptylist , "./userfiles/",1) + antivaluelist = antivalues.split(",") antilist += antivaluelist + # clean up antivalue list: + antilist = [s.strip().lower() for s in antilist] + # build all lists here colorlist = csv_to_list("colors",antilist)