Fix Bug 586 - jinja2.exceptions.UndefinedError
parent
5ae0c56af2
commit
6acd15f02e
|
|
@ -106,7 +106,18 @@ def get_today_article(user_word_list, visited_articles):
|
|||
text_level = text_difficulty_level(d['text'], d3)
|
||||
result_of_generate_article = "found"
|
||||
|
||||
today_article = {}
|
||||
today_article = {
|
||||
"user_level": '0.0',
|
||||
"text_level": '0.0',
|
||||
"date": '2026-04-03',
|
||||
"article_title": 'Unknown',
|
||||
"article_body": '',
|
||||
"source": '',
|
||||
"question": '',
|
||||
"answer": '',
|
||||
"ratio" : 0.0
|
||||
}
|
||||
|
||||
if d:
|
||||
oxford_words = load_oxford_words(oxford_words_path)
|
||||
oxford_word_count, total_words = count_oxford_words(d['text'],oxford_words)
|
||||
|
|
|
|||
Loading…
Reference in New Issue