Add exclude

This commit is contained in:
pythongosssss
2023-03-20 13:52:59 +00:00
parent 7e5c831e63
commit eadb220326
+2 -3
View File
@@ -93,10 +93,9 @@ elif valid:
all = character + general
remove = [s.strip() for s in exclude_tags.lower().split(",")]
all = [tag for tag in all if tag not in remove]
all = [tag for tag in all if tag[0] not in remove]
res = ", ".join((item[0].replace(" ",
"_").replace("(", "\\(").replace(")", "\\)") for item in all))
res = ", ".join((item[0].replace("(", "\\(").replace(")", "\\)") for item in all))
print(res)