We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51d7558 commit 1a48070Copy full SHA for 1a48070
backend/app.py
@@ -749,7 +749,9 @@ def replace_english_spaces(text):
749
conditional=True,
750
)
751
finally:
752
- pass
+ # 清理生成的临时 PDF 文件
753
+ if temp_pdf_file_path is not None and os.path.exists(temp_pdf_file_path):
754
+ safe_remove_file(temp_pdf_file_path)
755
# if temp_pdf_file_path is not None: # 检查变量是否已赋值
756
# for _ in range(5): # 尝试5次
757
# try:
backend/schedule_clean.py
@@ -5,7 +5,7 @@
5
import threading
6
7
def clear_temp_dir():
8
- temp_dir = '你的临时目录路径'
+ temp_dir = './temp'
9
if os.path.exists(temp_dir):
10
for filename in os.listdir(temp_dir):
11
file_path = os.path.join(temp_dir, filename)
0 commit comments