镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 14:36:48 +00:00
fix directory return bug
这个提交包含在:
@@ -71,5 +71,5 @@ def 全项目切换英文(txt, top_p, temperature, chatbot, history, sys_prompt,
|
|||||||
|
|
||||||
# 备份一个文件
|
# 备份一个文件
|
||||||
res = write_results_to_file(history)
|
res = write_results_to_file(history)
|
||||||
chatbot.append(("给爷一份任务执行报告", res))
|
chatbot.append(("生成一份任务执行报告", res))
|
||||||
yield chatbot, history, '正常'
|
yield chatbot, history, '正常'
|
||||||
|
|||||||
@@ -184,6 +184,7 @@ def find_recent_files(directory):
|
|||||||
if file_path.endswith('.log'): continue
|
if file_path.endswith('.log'): continue
|
||||||
created_time = os.path.getctime(file_path)
|
created_time = os.path.getctime(file_path)
|
||||||
if created_time >= one_minute_ago:
|
if created_time >= one_minute_ago:
|
||||||
|
if os.path.isdir(file_path): continue
|
||||||
recent_files.append(file_path)
|
recent_files.append(file_path)
|
||||||
|
|
||||||
return recent_files
|
return recent_files
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户