CrowdAnki icon indicating copy to clipboard operation
CrowdAnki copied to clipboard

CrowdAnki UUID don't get exported with the standard .apkg format

Open ChristianKleineidam opened this issue 8 years ago • 2 comments

Raise an issue with Damien/main anki?

ChristianKleineidam avatar Sep 04 '16 17:09 ChristianKleineidam

I think it might be dangerous to use internal IDs for exporting/importing. The problem is that when different people collaborate, they also have different Anki states. The one person might have notes with the IDs 1000, 1001 and wants to export them. The next one wants to import those, but has already notes with those IDs. What to do? Overwrite them? Ask the user how to handle them? So the internal ID would be a bad "primary key" which identifies a note.

The way Anki is programmed, it's preferable to use the combination of Note Type + search field as primary key.

dayjaby avatar Sep 07 '16 07:09 dayjaby

@dayjaby I'm aware of the issue, I use synthetically generated UUID to identify objects, the problem raised here is that those UUID are (partially?) not preserved if you do APKG export on a deck.

Stvad avatar Sep 07 '16 09:09 Stvad