This commit is contained in:
hailin 2024-10-28 20:13:11 +08:00
parent aa808affa7
commit b331fdaac0
1 changed files with 4 additions and 1 deletions

5
app.py
View File

@ -129,7 +129,7 @@ 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,
@ -140,6 +140,9 @@ def view_customer(index):
no_promotion_count=no_promotion_count)
# @app.route('/customer/<int:index>')
# def view_customer(index):
# # 判断是否有数据