Merge pull request #129 from AIrjen/stability_to_antilist

added strip and lower to the antilist logic
This commit is contained in:
AIrjen
2023-09-17 08:45:46 +02:00
committed by GitHub
+4
View File
@@ -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)