From c40f9b61a3952e28267cf5da42f60982c81cf914 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Sat, 31 Jul 2021 21:43:42 +0800 Subject: [PATCH] app/main.py: use buttons instead of links for familiar, unfamiliar and delete (for all words). --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index e6d50cb..42b4397 100644 --- a/app/main.py +++ b/app/main.py @@ -394,7 +394,7 @@ def userpage(username): if freq > 1: page += '

%s(%d) 熟悉 不熟悉 删除

\n' % (youdao_link(word), word, '; '.join(d[word]), freq,username, word,username,word, username,word) else: - page += '

%s(%d) 熟悉 不熟悉 删除

\n' % (youdao_link(word), word, '; '.join(d[word]), freq,username, word,username,word, username,word) + page += '

%s(%d) 熟悉 不熟悉 删除

\n' % (youdao_link(word), word, '; '.join(d[word]), freq,username, word,username,word, username,word) elif isinstance(d[word], int): # d[word] is a frequency. to migrate from old format. page += '%s%d\n' % (youdao_link(word), word, freq) page += ''