yf_yzl пре 2 година
родитељ
комит
cd49f837fe
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      apps/Weather/views.py

+ 1 - 1
apps/Weather/views.py

@@ -98,7 +98,7 @@ class GetWeather(APIView):
             return Response({"msg": "请联系管理员", "code": "50001"})
         
 
-def HistoryAPIView(APIView):
+class HistoryAPIView(APIView):
 
     def post(self, request):
         data = request.data