Tuchuanhuhuhu commited on
Commit
ffd1e43
·
1 Parent(s): 20c2fc5

feat: 去除历史记录列表的.json

Browse files
Files changed (1) hide show
  1. modules/utils.py +1 -0
modules/utils.py CHANGED
@@ -393,6 +393,7 @@ def get_history_names(user_name=""):
393
  return ""
394
  else:
395
  history_files = get_file_names_by_last_modified_time(os.path.join(HISTORY_DIR, user_name))
 
396
  return history_files
397
 
398
  def get_history_list(user_name=""):
 
393
  return ""
394
  else:
395
  history_files = get_file_names_by_last_modified_time(os.path.join(HISTORY_DIR, user_name))
396
+ history_files = [f[:f.rfind(".")] for f in history_files]
397
  return history_files
398
 
399
  def get_history_list(user_name=""):