Show only one place after the decimal point.
parent
f3aa407c56
commit
ed1d0fd714
|
@ -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']),
|
||||
|
|
Loading…
Reference in New Issue