Enable wildcards and embeds by default

Since we now search automatically, the script also doesn't try to load anything if none are found
This commit is contained in:
Dominik Reh
2022-10-15 14:39:26 +02:00
parent 07d7eddf66
commit 96828c241c
2 changed files with 6 additions and 1 deletions

View File

@@ -26,6 +26,10 @@ def write_to_temp_file(name, data):
# Check if the temp path exists and create it if not
if not os.path.exists(TEMP_PATH):
os.makedirs(TEMP_PATH)
# Set up files to ensure the script doesn't fail to load them
# even if no wildcards or embeddings are found
write_to_temp_file('wc.txt', [])
write_to_temp_file('emb.txt', [])
# Write wildcards to wc.txt if found
if os.path.exists(WILDCARD_PATH):

View File

@@ -8,7 +8,8 @@
"maxResults": 5,
"replaceUnderscores": true,
"escapeParentheses": true,
"useWildcards": false,
"useWildcards": true,
"useEmbeddings": true,
"colors": {
"danbooru": {
"0": ["lightblue", "dodgerblue"],