py/gadict_srs_anki.py
changeset 650 b13c09aaa9a3
parent 647 6ae5399c8087
child 657 c1d10b3b9ee4
--- a/py/gadict_srs_anki.py	Wed Nov 09 03:44:09 2016 +0200
+++ b/py/gadict_srs_anki.py	Wed Nov 09 12:44:53 2016 +0200
@@ -180,6 +180,7 @@
 .freq {
   color: red;
   font-weight: bold;
+  font-size: small;
 }
 .del {
   color: red;
@@ -309,7 +310,7 @@
 
     for (headwords, translations) in DOM[1:]:
         identity = headwords[0].headword
-        if 'rare' in identity.attrs:
+        if 'rare' in headwords[0].attrs:
             continue
         freqtags = []
         for (freqtag, freqset) in FREQ_SOURCES: