解决简单单词未成功加入生词簿,但依旧显示“added ****.”的提示信息
parent
750e67ef6b
commit
706ee48a7d
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue