diff --git a/app/static/The_Oxford.csv b/app/db/The_Oxford.csv similarity index 100% rename from app/static/The_Oxford.csv rename to app/db/The_Oxford.csv diff --git a/app/main.py b/app/main.py index 6901da7..145bf7e 100644 --- a/app/main.py +++ b/app/main.py @@ -96,8 +96,8 @@ def mainpage(): :return: 主界面 ''' - db_file = 'static/wordfreqapp.db' - csv_file = 'static/The_Oxford.csv' + db_file = "../db/wordfreqapp.db" + csv_file = "../db/The_Oxford.csv" text_list = load_text_list_from_db(db_file) word_set = load_word_list(csv_file) coverage_percentage = "{:.2f}".format(calculate_coverage(text_list, word_set)) diff --git a/app/static/wordfreqapp.db b/app/static/wordfreqapp.db deleted file mode 100644 index 6adba1d..0000000 Binary files a/app/static/wordfreqapp.db and /dev/null differ