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

Duplicate checking does not match ankiconnect #61

Closed
Kuuuube opened this issue Apr 17, 2024 · 7 comments
Closed

Duplicate checking does not match ankiconnect #61

Kuuuube opened this issue Apr 17, 2024 · 7 comments

Comments

@Kuuuube
Copy link
Contributor

Kuuuube commented Apr 17, 2024

Currently, yomitan's duplicate checking is running into some issues due to inconsistencies between ankiconnect and ankiconnect android.

This is not related to previous yomitan issues due to ankiconnect android missing parts of ankiconnect's api but instead how it returns data.

Related yomitan issue yomidevs/yomitan#835

@drakargx
Copy link
Contributor

drakargx commented Apr 18, 2024

Believe this is due to ankiconnect android's implementation of canAddNotes, it doesn't check for if "allowDuplicates" is true or false and just always assumes it's set to false. When yomidevs/yomitan#818 was approved, the duplicate add button was implemented by comparing the list of notes that can be added with and without allowing duplicates, so Ankiconnect android will just produce equal lists (if a note is in both lists, it is marked as "allowed, but not a duplicate").

Will need to respect the allowDuplicate flag, perhaps it is also worth supporting the full list of options too.

@drakargx
Copy link
Contributor

For now I believe I've resolved this issue in this branch https://github.com/drakargx/AnkiconnectAndroid/releases/tag/prelims

Needs further testing and definitely needs code changes but I won't be able to take care of anything else until 4/21 at earliest.

@KamWithK
Copy link
Owner

For now I believe I've resolved this issue in this branch https://github.com/drakargx/AnkiconnectAndroid/releases/tag/prelims

Needs further testing and definitely needs code changes but I won't be able to take care of anything else until 4/21 at earliest.

If that's the case #60 when it is ready should resolve this so we'll wait on you, no hurry

@drakargx
Copy link
Contributor

For now I believe I've resolved this issue in this branch https://github.com/drakargx/AnkiconnectAndroid/releases/tag/prelims
Needs further testing and definitely needs code changes but I won't be able to take care of anything else until 4/21 at earliest.

If that's the case #60 when it is ready should resolve this so we'll wait on you, no hurry

#60 now has the changes implemented

@KamWithK
Copy link
Owner

For now I believe I've resolved this issue in this branch https://github.com/drakargx/AnkiconnectAndroid/releases/tag/prelims
Needs further testing and definitely needs code changes but I won't be able to take care of anything else until 4/21 at earliest.

If that's the case #60 when it is ready should resolve this so we'll wait on you, no hurry

#60 now has the changes implemented

I'll take a look today or tomorrow

@akacoda1
Copy link

akacoda1 commented May 8, 2024

Bump!

@KamWithK
Copy link
Owner

#60 is now merged which should fix this issue

If it does not then please reopen and comment saying so

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

No branches or pull requests

4 participants