FreeLanguageTools / vocabsieve

Simple sentence mining tool for language learning
GNU General Public License v3.0
393 stars 30 forks source link

Exception: cannot create note because it is a duplicate #176

Closed kamanlam closed 1 day ago

kamanlam commented 4 weeks ago

Hi there! Thanks for your amazing work that I loved and made good use of.

Screenshot 2024-10-30 152429

Unfortunately this error message keeps pooping up, as I tried to

  1. updated the windows version
  2. tried Kindle import into Anki
  3. retried importing to a new deck, still no luck

May I ask if it is a known bug or what should I do?

Thank you in advance for your help.

artjomsR commented 4 weeks ago

Is this the kindle importer? Have you tried selecting the next available date (based on the one that was preselected for you when the importer opens).

I think what's happening is when you do an import, it saves the last import day. Then, next time you open the import window, it uses the same date as a start date for the new notes collection. Which means the cards on this day will be attempted to be added twice. Whereas instead, it should collect new cards starting from the next available day

The user will also most likely see this error if they do the below all in one day:

As the cards have already been partially created for the day, but since VSieve tries to import all cards for a given day, some cards will be attempted to be added as duplicates

1over137 commented 1 day ago

@artjomsR These are intended, and also overlaps are handled in a way that will try to not miss any items since we are only use the date, not timestamp. This issue in fact due to a change in AnkiConnect. In the past the addNotes command never gives an error (unlike addNote), but now it does. This needs to be handled in the code.