-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v3] Scheduling is broken, card is always moved to 1 #46
Comments
Also, unlike with v4, scheduling is recorded in the card's history:
|
I do remember fixing a lot of issues with scheduling in v4. I'll see how much of that I can backport to v3. I understand that Anki 2.0 isn't going anywhere any time soon. Thanks. |
New user here (a couple of days), Anki 2.0.41, ir cards always moved to 1 regardless of what I click. |
I tested the scheduler a bit. This is what happens: Settings: percentage, randomize.
I hope this information will be helpful for debugging. |
I'm not sure if there are any other issues with the scheduler, but the problem that @Smingvin mentions, in particular, is due to the way that python 2 deals with the division of integer values, which are not automatically cast to float, this can be solved one of two ways, both in scheduler.py, Either change the following line, (which was resulting in 0 every time due to loss of precision): newPos = totalCards * (value / 100) to newPos = totalCards * (float(value) / 100) or, my preferred way is to import the more robust division, by changing the very first line to from __future__ import unicode_literals, division |
@SijanC147, thanks so much for that. I've made the suggested change. Hopefully this resolves the main issue here. |
Anki 2.0.47 (v4 on Anki 2.1.0 beta 26 seems to work, and the first card is different). I have 3453 cards in my IR deck. The Scheduling settings are 10 and 50 %. The card is always moved to 1. The Organizer is too manual and not convenient (certainly not for 10 and 50 %).
The text was updated successfully, but these errors were encountered: