Commit 48ae1cf3 authored by zhengjinlei's avatar zhengjinlei

地市质检成绩汇总分析

parent 7d7f2cc2
......@@ -72,6 +72,9 @@ def db_city_score(req):
avg_score_svc=Round(Avg('service_score'), 2), avg_score_bus=Round(Avg('business_score'), 2),
avg_score=Round(Avg('score'), 2), total_session=Sum('total_session'), validate_num=Sum('validate_num'),
validate_zero=Sum('validate_zero'))
for k, v in all_scores.items():
if not v:
all_scores[k] = 0
all_scores['city'] = c
city_score_list.append(all_scores)
return city_score_list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment