Jelajahi Sumber

统计分析

wushaodong 4 tahun lalu
induk
melakukan
e0636db3ca
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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):
     '''小程序评价统计数据'''