forked from mrlan/EnglishPal
Fix Bug533
parent
c499eaeff9
commit
f46e82b09d
|
@ -96,8 +96,8 @@ def mainpage():
|
||||||
:return: 主界面
|
:return: 主界面
|
||||||
'''
|
'''
|
||||||
|
|
||||||
db_file = 'static/wordfreqapp.db'
|
db_file = "../db/wordfreqapp.db"
|
||||||
csv_file = 'static/The_Oxford.csv'
|
csv_file = "../db/The_Oxford.csv"
|
||||||
text_list = load_text_list_from_db(db_file)
|
text_list = load_text_list_from_db(db_file)
|
||||||
word_set = load_word_list(csv_file)
|
word_set = load_word_list(csv_file)
|
||||||
coverage_percentage = "{:.2f}".format(calculate_coverage(text_list, word_set))
|
coverage_percentage = "{:.2f}".format(calculate_coverage(text_list, word_set))
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue