summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2020-08-13 10:03:56 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2020-08-13 10:03:56 +0800
commitb08075b4c3bbd9f4c13c4540dcb3b4e1b6dceb37 (patch)
tree5dd40abadf275171141349c6b1ebf865a4dcaeec /app
parent21ce86d2052f461ae4548c6894ff8eaa3a5ca915 (diff)
main.py: set the frequency information white if the frequency is 1.
Diffstat (limited to 'app')
-rw-r--r--app/main.py2
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)