Akegarasu 2025-09-02 13:08:04 +08:00
parent 47129e02f0
commit fdefba9799
No known key found for this signature in database
GPG Key ID: DACA951FEBA569A2
1 changed files with 4 additions and 5 deletions

View File

@ -58,7 +58,7 @@ class Interrogator:
ok_tags = dict(sorted(ok_tags.items(), key=lambda item: item[1], reverse=True))
new_tags = []
for tag in list(tags):
for tag in list(ok_tags):
new_tag = tag
if replace_underscore and tag not in replace_underscore_excludes:
@ -68,12 +68,11 @@ class Interrogator:
new_tag = tag_escape_pattern.sub(r'\\\1', new_tag)
if add_confident_as_weight:
new_tag = f'({new_tag}:{tags[tag]})'
new_tag = f'({new_tag}:{ok_tags[tag]})'
new_tags.append((new_tag, tags[tag]))
tags = dict(new_tags)
new_tags.append((new_tag, ok_tags[tag]))
return tags
return dict(new_tags)
def __init__(self, name: str) -> None:
self.name = name