修复年度分析报告第二页溢出的问题#69

This commit is contained in:
shuaikangzhou
2023-12-06 21:29:12 +08:00
parent b3745867c6
commit b6f041b67a
7 changed files with 4774 additions and 4770 deletions

View File

@@ -42,16 +42,16 @@ def index0():
@app.route('/home')
def home():
try:
data = {
'sub_title': '二零二三年度报告',
'avatar_path': contact.avatar_path,
'nickname': contact.remark,
'first_time': msg_db.get_first_time_of_message(contact.wxid)[1],
}
return render_template('home.html', **data)
first_message, first_time = msg_db.get_first_time_of_message(contact.wxid)
except IndexError:
return set_text('咱就是说,一次都没聊过就别分析了')
data = {
'sub_title': '二零二三年度报告',
'avatar_path': contact.avatar_path,
'nickname': contact.remark,
'first_time': first_time,
}
return render_template('home.html', **data)
@app.route('/wordcloud')