yf_yzl 2 lat temu
rodzic
commit
cd49f837fe
1 zmienionych plików z 1 dodań i 1 usunięć
  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