Upload prompt_selector_1215.py
Browse files
Danbooru Prompt Selector/.py_version/prompt_selector_1215.py
CHANGED
@@ -987,12 +987,6 @@ def Auto_login_check():
|
|
987 |
if(tokens[0]):
|
988 |
access_token = tokens[0].strip()
|
989 |
tprint("1 Account automatically loaded : ",access_token[-5:])
|
990 |
-
try:
|
991 |
-
if(len(tokens)>=2):
|
992 |
-
access_token_multi = tokens[1].strip()
|
993 |
-
tprint("2 Account automatically loaded : ",access_token[-5:]+", "+access_token_multi[-5:])
|
994 |
-
except:
|
995 |
-
access_token_multi = None
|
996 |
if(access_token): button_generate.config(state='normal')
|
997 |
|
998 |
def character_search_thread():
|
@@ -1011,7 +1005,7 @@ def character_search():
|
|
1011 |
selected_index = selected_indices[0]
|
1012 |
# Get the keyword from the listbox, split by '-', and trim whitespace
|
1013 |
keyword_with_count = listbox.get(selected_index).strip()
|
1014 |
-
keyword = keyword_with_count.split('-')[0].strip()
|
1015 |
|
1016 |
# Call the analyze function with the selected keyword
|
1017 |
print(f"Analyzing keyword: {keyword}")
|
|
|
987 |
if(tokens[0]):
|
988 |
access_token = tokens[0].strip()
|
989 |
tprint("1 Account automatically loaded : ",access_token[-5:])
|
|
|
|
|
|
|
|
|
|
|
|
|
990 |
if(access_token): button_generate.config(state='normal')
|
991 |
|
992 |
def character_search_thread():
|
|
|
1005 |
selected_index = selected_indices[0]
|
1006 |
# Get the keyword from the listbox, split by '-', and trim whitespace
|
1007 |
keyword_with_count = listbox.get(selected_index).strip()
|
1008 |
+
keyword = keyword_with_count.split(' - ')[0].strip()
|
1009 |
|
1010 |
# Call the analyze function with the selected keyword
|
1011 |
print(f"Analyzing keyword: {keyword}")
|