|
@@ -132,6 +132,7 @@ class StatisticsRepairView(APIView):
|
|
'data':rows.filter(create_time__gte=date,create_time__lte=date+' 23:59:59').count(),
|
|
'data':rows.filter(create_time__gte=date,create_time__lte=date+' 23:59:59').count(),
|
|
}
|
|
}
|
|
data.append(item)
|
|
data.append(item)
|
|
|
|
+ data = data[::-1]
|
|
else:
|
|
else:
|
|
# 得到今年的的时间 (年份) 得到的today_year等于2016年
|
|
# 得到今年的的时间 (年份) 得到的today_year等于2016年
|
|
today_year = now.year
|
|
today_year = now.year
|
|
@@ -170,7 +171,7 @@ class StatisticsRepairView(APIView):
|
|
'data':rows.filter(create_time__year=year, create_time__month=month).count(),
|
|
'data':rows.filter(create_time__year=year, create_time__month=month).count(),
|
|
}
|
|
}
|
|
data.append(item)
|
|
data.append(item)
|
|
- return response_ok(data[::-1])
|
|
|
|
|
|
+ return response_ok(data)
|
|
|
|
|
|
class StatisticsEvaluateView(APIView):
|
|
class StatisticsEvaluateView(APIView):
|
|
'''小程序评价统计数据'''
|
|
'''小程序评价统计数据'''
|