Conversation
|
Thank you @juanolon for this contribution, much appreciated ! However, since I am not using Anki sync I am not sure what exactly your changes are effecting. It sounds like inka2 is broken for you? Would you mind describing why your proposed changes are relevant and how they can be tested. Ideally you could even provide some tests for it. Thank you! BTW the link you provided gives me: "Oops! That page doesn’t exist or is private." |
|
Yes, it was broken. I just install the current Anki client for linux (version in the previous comment) and tried inka2. It didn't run at all, as the python api of Anki apparently changed. You can see in the diff, the changes are more about the modules used: For example, The warning i get about the main thread (https://github.com/ankitects/anki/blob/4ab0db3127af8508317f84174aff9d20faedc41a/pylib/anki/_backend.py#L166) may be also related to the new code? (i see, it was introduced in December: ankitects/anki@6b3381a). Oh i see, i had a typo in the url. here it is: https://forums.ankiweb.net/t/unable-to-sync-login-via-anki-python-pkg-to-ankiweb/43092 |
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
This fixes some api changes and make the tool functional again. currently using the last Anki version:
It still show a warning, because
collection.sync_collectionis being called in the main thread (see https://forums.ankiweb.net/t/unable-to-sync-login-via-anki-python-pkg-to-ankiw)