Skip to content
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

[Feature Request] Don't redistribute cards with manually set due #421

Closed
hsseek opened this issue Jun 10, 2024 · 4 comments · Fixed by #422
Closed

[Feature Request] Don't redistribute cards with manually set due #421

hsseek opened this issue Jun 10, 2024 · 4 comments · Fixed by #422
Labels
enhancement New feature or request

Comments

@hsseek
Copy link

hsseek commented Jun 10, 2024

I adjust due dates for some cards. For instance, while the suggested due is 27 days and my exam is in 23 days, then I'd adjust the due date to 20 or so.
When I Load Balance, the due dates are adjusted as a whole, so the card that I deliberatedly arranged on a specific day also are moved to another date. Also, Anki does not provide search options to filter cards with manually set due dates. So, my former arrangements are missing forever.

Describe the solution you'd like
I'd like an option to exclude cards with manually set due dates on Load Balance.

Describe alternatives you've considered
Load Balance on deck-wise would be great as well.

@hsseek hsseek added the enhancement New feature or request label Jun 10, 2024
@L-M-Sherlock
Copy link
Member

The main problem is, it's impossible to distinguish manual set due date and reschedule cards on change. So if you enable reschedule cards on change, the helper add-on will not redistribute all cards.

@hsseek hsseek closed this as completed Jun 11, 2024
@hsseek hsseek reopened this Jun 12, 2024
@hsseek
Copy link
Author

hsseek commented Jun 12, 2024

If I Reschedule cards in n days then it would reshedule all the cards reviewed in n days, including cards with manually set due dates, after reviewed in n days. So the cards wouldn't appear on the dates I set, instead, it would appear on the dates that add-on redistributed. Am I missing something?

@L-M-Sherlock
Copy link
Member

Oops. It's unintended. I find out the problem:

if recent:
today_cutoff = mw.col.sched.day_cutoff
day_before_cutoff = today_cutoff - (config.days_to_reschedule + 1) * 86400
recent_query = (
f"AND id IN (SELECT cid FROM revlog WHERE id >= {day_before_cutoff * 1000})"
)

Because set due date also generates revlog. I will fix it soon.

@L-M-Sherlock
Copy link
Member

Patch: fsrs4anki-helper.ankiaddon.zip
Have a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants