mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
fix revlog upgrading
This commit is contained in:
parent
8358c7e686
commit
45ebbd14c8
1 changed files with 4 additions and 4 deletions
|
@ -242,13 +242,13 @@ yesCount from reviewHistory"""):
|
||||||
# id doesn't exist
|
# id doesn't exist
|
||||||
continue
|
continue
|
||||||
# no ease 0 anymore
|
# no ease 0 anymore
|
||||||
row[2] = row[2] or 1
|
row[3] = row[3] or 1
|
||||||
# determine type, overwriting yesCount
|
# determine type, overwriting yesCount
|
||||||
newInt = row[3]
|
newInt = row[4]
|
||||||
oldInt = row[4]
|
oldInt = row[5]
|
||||||
yesCnt = row[8]
|
yesCnt = row[8]
|
||||||
# yesCnt included the current answer
|
# yesCnt included the current answer
|
||||||
if row[2] > 1:
|
if row[3] > 1:
|
||||||
yesCnt -= 1
|
yesCnt -= 1
|
||||||
if oldInt < 1:
|
if oldInt < 1:
|
||||||
# new or failed
|
# new or failed
|
||||||
|
|
Loading…
Reference in a new issue