1
0
Fork 0

Show only one place after the decimal point.

Alpha-snapshot20230621
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 today_article = None
if d: if d:
today_article = { today_article = {
"user_level": '%4.2f' % user_level, "user_level": '%4.1f' % user_level,
"text_level": '%4.2f' % text_level, "text_level": '%4.1f' % text_level,
"date": d['date'], "date": d['date'],
"article_title": get_article_title(d['text']), "article_title": get_article_title(d['text']),
"article_body": get_article_body(d['text']), "article_body": get_article_body(d['text']),