Closed fylux closed 1 year ago
Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing
Huh :thinking: thanks for reporting this. May be possible to reproduce this one with a unit test - I'm not sure there is much if any coverage of the JS API, and if some of the APIs are reproducibly returning 0 it should show up immediately under a unit test
Thank you for the quick reply. Fyi today I have analyzed in more detail how it can be reproduced:
Hey im new to this, i know about java and i would likr to help
Hey @notpx :wave: - feel free to open a PR on it, that would be most welcome
I would like to work on this.
I have an addition doubt. What is the expected return values of this function if not zero. AnkiDroidJS.ankiGetCardFactor() AnkiDroidJS.ankiGetCardReps() AnkiDroidJS.ankiGetCardLapses()
Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically
Can anyone try to reproduce it in the latest version?
Let's give this one another cycle
I would like to work on this issue
I would like to work on the same. If possible, please assign me.
Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically
In the latest alpha I was trying to use:
For some reason they all return 0. It does not happen with every API function, e.g. AnkiDroidJS.ankiGetCardDue() works well.
Reproduction Steps
1a. Add to a note type
AnkiDroidJS.ankiGetCardFactor()
1b. Or simply use debug mode an in the console callAnkiDroidJS.ankiGetCardFactor()
Expected Result
Something >0
Actual Result
0
Debug info
Research
Enter an [x] character to confirm the points below: