[fix, plugin] Vocabulary builder: prevent resetting changes when reviewing backwards (#9161)

reviewable/pr9165/r1
weijiuqiao 2 years ago committed by GitHub
parent 5b29f1b927
commit ee6197efff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -110,7 +110,7 @@ function VocabularyBuilder:_select_items(items, start_idx)
for i = 1, #results.word do
local item = items[start_idx+i-1]
if item then
if item and not item.word then
item.word = results.word[i]
item.review_count = math.max(0, math.min(8, tonumber(results.review_count[i])))
item.book_title = results.book_title[i] or ""

Loading…
Cancel
Save