DONE: Bug547_FanWenQi #108

Closed
fanwenqi wants to merge 82 commits from Bug547_FanWenQi into Alpha-snapshot20230621
There is no content yet.
fanwenqi added 1 commit 2024-04-11 23:22:03 +08:00
fanwenqi added 77 commits 2024-04-22 12:21:07 +08:00
a0ddf4bdad 上传文件至 'app/static/js'
修复了 Bug492 选中问号出现多个问号的问题。
解决了选中紧跟标点符号的单词,单词能正常显示。
优化了选中较长的文章时页面容易出现卡顿的问题。
dca76969eb 解决程序源文件更新了,但是 docker container 中的程序源文件没有更新的问题
问题出在 build.sh 中的 --mount type=volume,src=englishpal-db,target=/app 。
运行 docker container 时,会将整个 englishpal-db 对应的文件夹 /var/lib/docker/volumes/englishpal-db/_data
下面的内容拷贝到  docker container 里面的 /app 文件夹下面。

然而,/var/lib/docker/volumes/englishpal-db/_data 下面的源程序文件并不是最新的(比如其 main.py 是 7月17日的)。
将 target=/app 改为 target=/app/db。即可解决问题。
1b211f107d Speed up loading next article
The key change is replacing "d1 = load_freq_history(path_prefix + 'static/frequency/ferquency.p)" with "d1 = load_freq_history(user_word_list)"
in function get_today_article() from Article.py.  Now, with a user_word_list of size about 500, the next article can be loaded within 100ms.
The new d1 is much smaller than the old one, therefore the following computation "d3 = get_difficulty_level_for_user(d1, d2)" is much faster.
The students did not feel that loading next article is slow; this is because their frequency.p is quite small.

Also log information in app/log.txt
fanwenqi changed title from WIP:Bug547_FanWenQi to WIP:Bug547_FanWenQi 2024-04-22 12:27:04 +08:00
fanwenqi changed target branch from master to Alpha-snapshot20230621 2024-04-22 12:27:04 +08:00
fanwenqi changed title from WIP:Bug547_FanWenQi to WIP:Bug547_FanWenQi 2024-04-22 12:27:20 +08:00
fanwenqi changed title from WIP:Bug547_FanWenQi to WIP: Bug547_FanWenQi 2024-04-22 12:27:26 +08:00
fanwenqi changed title from WIP: Bug547_FanWenQi to Bug547_FanWenQi 2024-04-22 12:27:44 +08:00
fanwenqi changed title from Bug547_FanWenQi to WIP: Bug547_FanWenQi 2024-04-22 12:28:12 +08:00

@fanwenqi
测试脚本呢?

@fanwenqi 测试脚本呢?

@fanwenqi

could please send a demo video link.

@fanwenqi could please send a demo video link.

@fanwenqi

line 98 of
app/templates/userpage_get.html

add a closing tag }

@fanwenqi line 98 of [ app/templates/userpage_get.html ](http://118.25.96.118:3000/mrlan/EnglishPal/src/branch/Bug547_FanWenQi/app/templates/userpage_get.html) add a closing tag `}`
jiangxianting added 4 commits 2024-06-14 21:16:01 +08:00
mrlan changed title from WIP: Bug547_FanWenQi to DONE: Bug547_FanWenQi 2024-06-22 08:22:30 +08:00
mrlan changed title from DONE: Bug547_FanWenQi to WIP: Bug547_FanWenQi 2024-06-22 08:23:02 +08:00
mrlan changed title from WIP: Bug547_FanWenQi to DONE: Bug547_FanWenQi 2024-06-22 09:08:46 +08:00
mrlan closed this pull request 2024-09-01 07:28:59 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrlan/EnglishPal#108
There is no content yet.