Update wildcard_importer.py

typo
This commit is contained in:
Legende
2025-06-09 14:17:42 +02:00
committed by GitHub
parent b4e5fdc370
commit 5fce41e53c
+2 -2
View File
@@ -134,7 +134,7 @@ class WildcardImporter:
try:
# Sort categories alphabetically for consistent output
sorted_yaml_data = dict(sorted(yaml_data.items()))
with open(output_path, 'w', encoding='utf--8') as f:
with open(output_path, 'w', encoding='utf-8') as f:
yaml.dump(sorted_yaml_data, f, default_flow_style=False, sort_keys=False, allow_unicode=True)
status_msg = f"Success! Processed {processed_count} wildcards. Added/updated {total_tags_added} tags in '{safe_output_filename}'."
print(f"[Importer] {status_msg}")
@@ -143,4 +143,4 @@ class WildcardImporter:
print(f"[Importer] {status_msg}")
return ("", status_msg, 0)
return (str(output_path), status_msg, processed_count)
return (str(output_path), status_msg, processed_count)