解决简单单词未成功加入生词簿,但依旧显示“added ****.”的提示信息

pull/150/head
倪周挺 2024-06-28 20:57:30 +08:00
parent 750e67ef6b
commit 706ee48a7d
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ def user_mark_word(username):
pickle_idea2.save_frequency_to_pickle(d, user_freq_record)
flash('Added %s.' % (', '.join(trueadd))) # 显示添加的单词
else:
flash('No new words were added. All words were either too simple or already in your list.') # 没有单词被添加
flash('No new words were added.') # 没有单词被添加
return redirect(url_for('user_bp.userpage', username=username))
else:
return 'Under construction'