1
0
Fork 0

Bug493-Fix

593
dktea 2022-12-20 12:19:06 +08:00
parent 0962d95ce1
commit b9a6e4407e
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,10 @@ def mainpage():
content = escape(request.form['content']) content = escape(request.form['content'])
f = WordFreq(content) f = WordFreq(content)
lst = f.get_freq() lst = f.get_freq()
for i in lst:
if '&' in i[0]:
i[0].replace('&','\'')
#此处由于找不到输出的所以对其输入的格式进行重新规范
# save history # save history
d = load_freq_history(path_prefix + 'static/frequency/frequency.p') d = load_freq_history(path_prefix + 'static/frequency/frequency.p')
lst_history = pickle_idea.dict2lst(d) lst_history = pickle_idea.dict2lst(d)