Closed thiswillbeyourgithub closed 3 years ago
This looks like an anki database limition, I'll add a check when highlighting cards to warn the user and prevent the ugly crash.
Hello again. Your python skills are obviously far sharper than mine but I don't really understand why you would run into an issue like that. I created a very simple addon the other day that can run over seemingly infinite number of cards (+40k at least) so I think it's just due to the way you ask the db to provide the cards nid.
My code is dead simple but gives you an idea : https://github.com/thiswillbeyourgithub/HapaxPredator
It is actually a heavily shortened script from Glutanimate from the addon batch editing. So his code shows a way to modify a very large number of cards in a row. My addon doesn't modify cards but is very short to understand.
Hope it helps.
Thanks, I neglected to come back and edit it - I discovered the way I was querying the dB is inefficient, you are totally correct! I will re do my approach and get back to you. There is a limit on the db query, but I was forming the query by concatenating the note IDs needed, which is not the best way š thanks for the link to your code, I'll take a look at it!
On Tue, 2 Mar 2021, 7:56 pm thiswillbeyourgithub, notifications@github.com wrote:
Hello again. Your python skills are obviously far sharper than mine but I don't really understand why you would run into an issue like that. I created a very simple addon the other day that can run over seemingly infinite number of cards (+40k at least) so I think it's just due to the way you ask the db to provide the cards nid.
My code is dead simple but gives you an idea : https://github.com/thiswillbeyourgithub/HapaxPredator
It is actually a heavily shortened script from Glutanimate from the addon batch editing https://ankiweb.net/shared/info/291119185. So his code shows a way to modify a very large number of cards in a row. My addon doesn't modify cards but is very short to understand.
Hope it helps.
ā You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cfculhane/AnkiOCR/issues/16#issuecomment-788740298, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRYIUZWGLAECSEMZZLEQRTTBSR2NANCNFSM4W4WIV6Q .
Sorry for the delay on this - but this is now fixed, will be pushing a release to AnkiWeb shortly.
Hi,
In case you didn't know, there seems to be a limit to how many cards the user can send to AnkiOCR, it's a minor annoyance to me as I often share very large decks with colleagues.
Here's the error :