From 5adcd244f6e7d34c587606c02e7ccdc096aa1a8b Mon Sep 17 00:00:00 2001 From: carlospolop Date: Thu, 21 Aug 2025 02:26:27 +0200 Subject: [PATCH] f --- scripts/translator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/translator.py b/scripts/translator.py index 71ab9ab6a..8d61a235a 100644 --- a/scripts/translator.py +++ b/scripts/translator.py @@ -425,7 +425,7 @@ if __name__ == "__main__": translate_files = None # Need to initialize it here to avoid error if args.file_paths: # Translate only the indicated file - translate_files = [f.strip() for f in args.file_paths.split(',') if f] + translate_files = list(set([f.strip() for f in args.file_paths.split(',') if f])) for file_path in translate_files: #with tqdm(total=len(all_markdown_files), desc="Translating Files") as pbar: with concurrent.futures.ThreadPoolExecutor(max_workers=num_threads) as executor: