fix bug with name gneeration
This commit is contained in:
@@ -152,7 +152,7 @@ def output_anki_phrase(process_file: ProcessFile, results: list[TranslationResul
|
|||||||
|
|
||||||
final_file = process_file.output_name.with_suffix(".apkg")
|
final_file = process_file.output_name.with_suffix(".apkg")
|
||||||
deck_name = "::".join(
|
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)
|
deck = Deck(random.randrange(1 << 30, 1 << 31), deck_name)
|
||||||
package = Package(deck)
|
package = Package(deck)
|
||||||
|
|||||||
Reference in New Issue
Block a user