mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
rewrite expression to be clearer
This commit is contained in:
parent
cbc23e5231
commit
9671d15371
1 changed files with 1 additions and 1 deletions
|
@ -483,7 +483,7 @@ where id != :id and factId = :factId""",
|
||||||
if (interval < self.hardIntervalMax and
|
if (interval < self.hardIntervalMax and
|
||||||
interval > 0.166):
|
interval > 0.166):
|
||||||
mid = (self.midIntervalMin + self.midIntervalMax) / 2.0
|
mid = (self.midIntervalMin + self.midIntervalMax) / 2.0
|
||||||
interval *= (mid / interval / factor)
|
interval = mid / factor
|
||||||
# multiply last interval by factor
|
# multiply last interval by factor
|
||||||
if ease == 2:
|
if ease == 2:
|
||||||
interval = (interval + delay/4) * 1.2
|
interval = (interval + delay/4) * 1.2
|
||||||
|
|
Loading…
Reference in a new issue