From b24e664a8562b03d2b944bac42c3ffa1fa2f5beb Mon Sep 17 00:00:00 2001 From: kaixindelele <1985790413@qq.com> Date: Tue, 20 Jun 2023 21:06:34 +0800 Subject: [PATCH] Update latex_utils.py --- crazy_functions/latex_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crazy_functions/latex_utils.py b/crazy_functions/latex_utils.py index 163d0e2..c380da0 100644 --- a/crazy_functions/latex_utils.py +++ b/crazy_functions/latex_utils.py @@ -685,7 +685,9 @@ def 编译Latex(chatbot, history, main_file_original, main_file_modified, work_f result_pdf = pj(work_folder_modified, f'{main_file_modified}.pdf') if os.path.exists(pj(work_folder, '..', 'translation')): shutil.copyfile(result_pdf, pj(work_folder, '..', 'translation', 'translate_zh.pdf')) - promote_file_to_downloadzone(result_pdf, chatbot) + promote_file_to_downloadzone(result_pdf, chatbot=chatbot) + # 我重新指定了参数传入。 + # promote_file_to_downloadzone(file=result_pdf, rename_file=None, chatbot=chatbot) return True # 成功啦 else: if n_fix>=max_try: break