This commit is contained in:
hailin 2024-10-28 20:32:02 +08:00
parent 3cefa98c77
commit 403602f067
1 changed files with 7 additions and 0 deletions

7
app.py
View File

@ -126,6 +126,13 @@ def view_customer(index):
is_first = index == 0
is_last = index == len(customer_data) - 1
# 调试代码:先尝试返回不带统计信息的模板渲染
return render_template('edit_customers.html',
customer=customer,
index=index,
is_first=is_first,
is_last=is_last)
# 计算统计数据
total_emails, cold_lead_count, no_promotion_count = calculate_statistics()