Browse Source

统计分析

wushaodong 4 năm trước cách đây
mục cha
commit
e0636db3ca
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      apps/wxapp/views.py

+ 1 - 2
apps/wxapp/views.py

@@ -170,8 +170,7 @@ class StatisticsRepairView(APIView):
                     'data':rows.filter(create_time__year=year, create_time__month=month).count(),
                 }
                 data.append(item)
-
-        return response_ok(sorted(data))
+        return response_ok(data[::-1])
 
 class StatisticsEvaluateView(APIView):
     '''小程序评价统计数据'''