mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix hour cutoff
This commit is contained in:
parent
da639c00a5
commit
8e1ed0dacd
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ def optimalPeriod(time, point, unit):
|
||||||
if abs(time) < 60 or unit < 1:
|
if abs(time) < 60 or unit < 1:
|
||||||
type = "seconds"
|
type = "seconds"
|
||||||
point -= 1
|
point -= 1
|
||||||
elif abs(time) < 3599 or unit < 2:
|
elif abs(time) < 3600 or unit < 2:
|
||||||
type = "minutes"
|
type = "minutes"
|
||||||
elif abs(time) < 60 * 60 * 24 or unit < 3:
|
elif abs(time) < 60 * 60 * 24 or unit < 3:
|
||||||
type = "hours"
|
type = "hours"
|
||||||
|
|
Loading…
Reference in a new issue