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