注释flash的使用,因为其对页面会有影响

王梓铭 2023-03-21 19:19:51 +08:00
parent 6df25c58b4
commit c9bfa08658
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ def deleteword(username, word):
''' '''
user_freq_record = path_prefix + 'static/frequency/' + 'frequency_%s.pickle' % (username) user_freq_record = path_prefix + 'static/frequency/' + 'frequency_%s.pickle' % (username)
pickle_idea2.deleteRecord(user_freq_record, word) pickle_idea2.deleteRecord(user_freq_record, word)
flash(f'<strong>{word}</strong> is no longer in your word list.') # 模板 userpage_get.html 中已经没有对flash信息的获取了就不做修改了 # 模板 userpage_get.html 中已经没有对flash信息的获取了而且会影响 signup.html的显示因为其中去获取了flash。在删除单词退出注册页面就会出现提示信息
# flash(f'<strong>{word}</strong> is no longer in your word list.')
return "success" return "success"