fix bug with name gneeration

This commit is contained in:
Wolfang Torres
2026-06-12 00:59:19 +08:00
parent eb4cc8e6e0
commit 9b0d23b8ac

View File

@@ -152,7 +152,7 @@ def output_anki_phrase(process_file: ProcessFile, results: list[TranslationResul
final_file = process_file.output_name.with_suffix(".apkg")
deck_name = "::".join(
process_file.input_file.parts[:-1] + (process_file.input_file.stem,)
process_file.input_file.parts[:-1] + (process_file.output_name.stem,)
)
deck = Deck(random.randrange(1 << 30, 1 << 31), deck_name)
package = Package(deck)