林轩 1 년 전
부모
커밋
930d53fbd6
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      apps/PestAnalysis/views.py

+ 0 - 1
apps/PestAnalysis/views.py

@@ -193,7 +193,6 @@ class RecentMonthPestCount(GenericAPIView):
                             result[pest] += int(num)
                         else:
                             result[pest] = int(num)
-                addr = addr.starts
                 imgs.append(addr if addr.startswith("http") else "https://bigdata-image.oss-cn-hangzhou.aliyuncs.com/Basics/cbd/" + addr)
             return Response({"data": result, "imgs": imgs})
         except Exception as e: