Show only one place after the decimal point.

Bug511-Bosh
Lan Hui 2023-08-11 21:02:22 +08:00
parent f3aa407c56
commit ed1d0fd714
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ def get_today_article(user_word_list, visited_articles):
today_article = None
if d:
today_article = {
"user_level": '%4.2f' % user_level,
"text_level": '%4.2f' % text_level,
"user_level": '%4.1f' % user_level,
"text_level": '%4.1f' % text_level,
"date": d['date'],
"article_title": get_article_title(d['text']),
"article_body": get_article_body(d['text']),