This commit is contained in:
parent
aa808affa7
commit
b331fdaac0
5
app.py
5
app.py
|
|
@ -129,7 +129,7 @@ def view_customer(index):
|
||||||
is_first = index == 0
|
is_first = index == 0
|
||||||
is_last = index == len(customer_data) - 1
|
is_last = index == len(customer_data) - 1
|
||||||
|
|
||||||
# 将统计信息传递到模板
|
# 将统计信息和原有数据一起传递到模板
|
||||||
return render_template('edit_customers.html',
|
return render_template('edit_customers.html',
|
||||||
customer=customer,
|
customer=customer,
|
||||||
index=index,
|
index=index,
|
||||||
|
|
@ -140,6 +140,9 @@ def view_customer(index):
|
||||||
no_promotion_count=no_promotion_count)
|
no_promotion_count=no_promotion_count)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# @app.route('/customer/<int:index>')
|
# @app.route('/customer/<int:index>')
|
||||||
# def view_customer(index):
|
# def view_customer(index):
|
||||||
# # 判断是否有数据
|
# # 判断是否有数据
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue