From b08075b4c3bbd9f4c13c4540dcb3b4e1b6dceb37 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Thu, 13 Aug 2020 10:03:56 +0800 Subject: main.py: set the frequency information white if the frequency is 1. --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 += '%s (%d)\n' % (youdao_link(word), word, '; '.join(d[word]), freq) else: - page += '%s\n' % (youdao_link(word), word) + page += '%s (%d)\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 += '%s%d\n' % (youdao_link(word), word, freq) -- cgit v1.2.1