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