邱忠辉
9d420acd8b
1. Add jquery.js and word_operation.js to the static folder. 2. Changed the return type of the familiar, unfamiliar and deleteword methods of user_service.py. ``` original: return redirect(url_for('userpage', username=username)) now: return "success" ``` 3. In order to get elements in JS to make ajax requests we add ids in userpage_get.html for familiar, unfamiliar, delete buttons and so on. 4. When the user's word book was retrieved, the list returned was already sorted in descending order of frequency, so redundant code was removed in userpage_get.html. Co-authored-by: PeterQiu <www.1392993990@qq.com> Co-authored-by: Lan Hui <1348141770@qq.com> Reviewed-on: http://121.4.94.30:3000/mrlan/EnglishPal/pulls/30 Co-authored-by: 邱忠辉 <1392993990@qq.com> Co-committed-by: 邱忠辉 <1392993990@qq.com> |
||
---|---|---|
.. | ||
conftest.py | ||
test_add_word.py | ||
test_add_word_and_essay_does_not_change.py | ||
test_delete_word.py | ||
test_login.py | ||
test_login_security_fix.py | ||
test_next_essay.py | ||
test_page_position.py | ||
test_signup.py | ||
test_word_operation.py |