BugFix293 #14

Merged
mrlan merged 2 commits from BugFix293 into master 2021-08-30 08:31:56 +08:00

修复 http://118.25.96.118/bugzilla/show_bug.cgi?id=293

  • 随机挑选文章。先将数据库里面的所有文章随机排序,然后选择一篇高于用户词汇水平0.8*(8-level)之内的文章。比如用户的水平是level=4,那么所有难度等级在4到7.2的文章都有可能被选取。

  • wordfreqapp.db 持久化

Hui

修复 http://118.25.96.118/bugzilla/show_bug.cgi?id=293 - 随机挑选文章。先将数据库里面的所有文章随机排序,然后选择一篇高于用户词汇水平0.8*(8-level)之内的文章。比如用户的水平是level=4,那么所有难度等级在4到7.2的文章都有可能被选取。 - wordfreqapp.db 持久化 Hui
mrlan added 2 commits 2021-08-30 08:31:50 +08:00
baf333678a main.py and build.sh: shuffle the articles first before select one, relax selection range, keep the database
main.py:

- shuffle the articles first before select one

- relax selection range (see the function call within_range)

build.sh:

- keep the database wordfreqapp.db so that the user could login again next time after the program is rebuilt.

Hui
mrlan merged commit 6754930707 into master 2021-08-30 08:31:56 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 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#14
There is no content yet.