Integrated tags to notes for filtering in Anki.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 13 May 2020 01:46:28 +0300
changeset 1215 d7394ed6693d
parent 1214 8aecadfc6e8f
child 1216 8f94645c4674
Integrated tags to notes for filtering in Anki.
py/gadict_srs_anki.py
--- a/py/gadict_srs_anki.py	Tue May 12 15:49:52 2020 +0300
+++ b/py/gadict_srs_anki.py	Wed May 13 01:46:28 2020 +0300
@@ -531,7 +531,7 @@
         for sense in translations:
             write_sense(buf, sense, with_examples=False)
         reverse_from = "".join(buf)         # without examples!!
-        BUILDER.add_note(identity, unambiguous, direct_from, direct_to, reverse_from, freqmsg)
+        BUILDER.add_note(identity, unambiguous, direct_from, direct_to, reverse_from, freqmsg, freqtags)
         if v1 and v2 and v3 and RICH_MODE:
             riddle1 = u"<span class='headword'>{}</span> <span class='pron'>[{}]</span> <span class='attrs'>v1</span>".format(v1[0], v1[1])
             riddle2 = u"<span class='headword'>{}</span> <span class='pron'>[{}]</span> <span class='attrs'>v2</span>".format(v2[0], v2[1])