Stvad / CrowdAnki

Plugin for Anki SRS designed to facilitate cooperation on creation of notes and decks.
MIT License
533 stars 44 forks source link

Importing .json doesn't create cards in children decks, only in the parent deck #7

Closed dayjaby closed 8 years ago

dayjaby commented 8 years ago

I have the following deck hierarchy:

Kumo (Parent deck)

All those .txt decks contain several notes. However, after importing, only "Kumo" contains cards.

To reproduce this error: Import this JSON file.

Desired behaviour: Each of those .txt decks shall contain cards.

Stvad commented 8 years ago

I've fixed some hierarchy problems (not directly related to this one, but may influence). But the main issue here is that in the deck, you've submitted - there is a ton of UUID collisions on Notes, I'm not sure what has caused this, but this is ultimately the reason why all cards end up in Kumo (because there is a collision for each note in *.txt subdecks)

Stvad commented 8 years ago

Ah, I see, It's caused by the fact that you have cards of one note in different deck and the Note on export is duplicated