Exception filling missing fields
Closed this issue · 2 comments
fultonm commented
Mac Version:
10.13.2 (17C205)
Anki 2.1.0beta32 Python 3.6.1 Qt 5.9.2 PyQt 5.9
Platform: Mac 10.13.2
Flags: frz=True ao=True
Caught exception:
File "/Users/michaelfulton/Library/Application Support/Anki2/addons21/839350950/fill_missing.py", line 267, in fill_simp_trad
if (has_field(Simplified_fields, note_dict) or has_field(Traditional_fields, note_dict)) and has_field(Hanzi_fields, note_dict):
<class 'NameError'>: name 'Simplified_fields' is not defined
fultonm commented
I solved this by hardcoding these fields in fill_missing.py like this:
Simplified_fields = ['Simplified']
Traditional_fields = ['Traditional']
Pinyin_fields = ['Pinyin']
Meaning_fields = ['Meaning']
Hanzi_fields = ['Hanzi']
Alternate_fields = ['Alternate']
English_fields = ['English']
Sound_fields = ['Sound']
Color_fields = ['Color']
jdlorimer commented
Thanks. This should be fixed now.