I downloaded and installed mnemosyne 2.2.1 on debian linux several days 
before.

When I import *.cards file into mnemosyne, the cards are always tagged as 
Untagged, no matter whether I add an additonal tag to cards or not. (The 
additional tag are labeled correctly. So when I add an additional tag, the 
cards are labeled with the additonal tag and Untagged at the same time)

I added two lines in 
/where-mnemosyne-installed/mnemosyne/libmnemosyne/databases/SQLite_sync.py 
and it seemed to solve my problem.

in function SQLiteSync.add_card_from_log_entry, at line 583

        if self.importing:
            for tag in self.extra_tags_on_import:
                card.tags.add(tag)

change above lines to below:

        if self.importing:
            if len(self.extra_tags_on_import) != 0:
                card.tags.discard(self.tag('__UNTAGGED__', 
is_id_internal=False))
            for tag in self.extra_tags_on_import:
                card.tags.add(tag)

I post this, so people who encounter the same problem can try my solution.

English is not my mother tongue, so if there is anything I wrote wrongly, 
please correct me.


-- 
You received this message because you are subscribed to the Google Groups 
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/mnemosyne-proj-users/-/YqS9v0yN-I0J.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to