Skip to content

Fix #20763: Match Scheduler.answerCard with upstream Anki#21163

Open
vivek41-glitch wants to merge 1 commit into
ankidroid:mainfrom
vivek41-glitch:main
Open

Fix #20763: Match Scheduler.answerCard with upstream Anki#21163
vivek41-glitch wants to merge 1 commit into
ankidroid:mainfrom
vivek41-glitch:main

Conversation

@vivek41-glitch
Copy link
Copy Markdown
Contributor

Fixes #20763

Replace queuedCards.cardsList.first() with col.backend.getSchedulingStates(card.id) to match upstream Python implementation.

@vivek41-glitch
Copy link
Copy Markdown
Contributor Author

This PR fixes #20763 by replacing queuedCards.cardsList.first() with col.backend.getSchedulingStates(card.id) to match upstream Anki.
I understand there are extra commits in this PR. I'm new to Git and would greatly appreciate it if you could squash the commits when merging.
Thank you

@david-allison

This comment was marked as resolved.

@david-allison david-allison added Needs Author Reply Waiting for a reply from the original author and removed Needs Review labels May 28, 2026
@vivek41-glitch

This comment was marked as resolved.

@DoomsCoder

This comment was marked as resolved.

@vivek41-glitch
Copy link
Copy Markdown
Contributor Author

thanks @DoomsCoder for guiding , and @david-allison all test passed including kotlin issue , now ready for final review.

david-allison

This comment was marked as resolved.

Copy link
Copy Markdown
Member

@david-allison david-allison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much!!

@david-allison david-allison added Needs Second Approval Has one approval, one more approval to merge and removed Needs Author Reply Waiting for a reply from the original author labels May 29, 2026
Copy link
Copy Markdown
Contributor

@DoomsCoder DoomsCoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers 🥂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Second Approval Has one approval, one more approval to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[API] Scheduler.answerCard NoSuchElementException: List is empty.

3 participants