app/main.py: adjust badge color.

pull/10/head
Hui Lan 2021-07-31 21:22:09 +08:00
parent 20386033bc
commit bef218953b
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ def get_today_article(user_word_list, articleID):
d = reading d = reading
break break
s = '<div class="alert alert-success" role="alert">According to your word list, your level is <span class="badge bg-dark">%4.2f</span> and we have chosen an article with a difficulty level of <span class="badge bg-dark">%4.2f</span> for you.</div>' % (user_level, text_level) s = '<div class="alert alert-success" role="alert">According to your word list, your level is <span class="badge bg-success">%4.2f</span> and we have chosen an article with a difficulty level of <span class="badge bg-success">%4.2f</span> for you.</div>' % (user_level, text_level)
s += '<p><b>%s</b></p>' % (d['date']) s += '<p><b>%s</b></p>' % (d['date'])
s += '<p><font size=+2>%s</font></p>' % (d['text']) s += '<p><font size=+2>%s</font></p>' % (d['text'])
s += '<p><i>%s</i></p>' % (d['source']) s += '<p><i>%s</i></p>' % (d['source'])