diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2020-08-13 10:03:56 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2020-08-13 10:03:56 +0800 |
commit | b08075b4c3bbd9f4c13c4540dcb3b4e1b6dceb37 (patch) | |
tree | 5dd40abadf275171141349c6b1ebf865a4dcaeec /app | |
parent | 21ce86d2052f461ae4548c6894ff8eaa3a5ca915 (diff) |
main.py: set the frequency information white if the frequency is 1.
Diffstat (limited to 'app')
-rw-r--r-- | app/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/main.py b/app/main.py index 3368612..fc9caa1 100644 --- a/app/main.py +++ b/app/main.py @@ -308,7 +308,7 @@ def userpage(username): if freq > 1:
page += '<a href="%s">%s</a> (<a title="%s">%d</a>)\n' % (youdao_link(word), word, '; '.join(d[word]), freq)
else:
- page += '<a href="%s">%s</a>\n' % (youdao_link(word), word)
+ page += '<a href="%s">%s</a> <font color="white">(<a title="%s">%d</a>)</a>\n' % (youdao_link(word), word, '; '.join(d[word]), freq)
elif isinstance(d[word], int): # d[word] is a frequency. to migrate from old format.
page += '<a href="%s">%s</a>%d\n' % (youdao_link(word), word, freq)
|