Skip to content

Commit

Permalink
修复文件导出的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Jun 29, 2023
1 parent 3b78e05 commit 3717290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox.py
Expand Up @@ -498,7 +498,7 @@ def on_report_generated(cookies, files, chatbot):
else:
report_files = find_recent_files('gpt_log')
if len(report_files) == 0:
return None, chatbot
return cookies, None, chatbot
# files.extend(report_files)
file_links = ''
for f in report_files: file_links += f'<br/><a href="file={os.path.abspath(f)}" target="_blank">{f}</a>'
Expand Down

0 comments on commit 3717290

Please sign in to comment.