林轩 пре 1 година
родитељ
комит
c1707e693d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      apps/PestAnalysis/views.py

+ 1 - 1
apps/PestAnalysis/views.py

@@ -199,7 +199,7 @@ class RecentMonthPestCount(GenericAPIView):
                 if k in insect_dict.keys():
                     temp[insect_dict.get(k)] = v 
             data = {
-                "pest": result,
+                "pest": temp,
                 "imgs": imgs[:10]
             }
             return Response(data)