Browse Source

更新不必要库

zhangdongming 3 years ago
parent
commit
5f39817964
1 changed files with 1 additions and 3 deletions
  1. 1 3
      AdminController/DeviceManagementController.py

+ 1 - 3
AdminController/DeviceManagementController.py

@@ -4,7 +4,6 @@ import json
 import time
 import time
 from bisect import bisect_left
 from bisect import bisect_left
 
 
-import numpy as np
 import oss2
 import oss2
 from django.db import transaction
 from django.db import transaction
 from django.db.models import Q, F
 from django.db.models import Q, F
@@ -23,7 +22,6 @@ from Service.EquipmentInfoService import EquipmentInfoService
 from Service.ModelService import ModelService
 from Service.ModelService import ModelService
 
 
 
 
-
 class DeviceManagement(View):
 class DeviceManagement(View):
     def get(self, request, *args, **kwargs):
     def get(self, request, *args, **kwargs):
         request.encoding = 'utf-8'
         request.encoding = 'utf-8'
@@ -140,7 +138,7 @@ class DeviceManagement(View):
                         app_bundle_qs = AppBundle.objects.filter(id=app_id).values('id')
                         app_bundle_qs = AppBundle.objects.filter(id=app_id).values('id')
                         if not app_bundle_qs.exists():
                         if not app_bundle_qs.exists():
                             AppBundle.objects.create(app_bundle_id=app_bundle_name, id=app_id)
                             AppBundle.objects.create(app_bundle_id=app_bundle_name, id=app_id)
-                #判断数据是否存在,是否上传
+                # 判断数据是否存在,是否上传
                 # app_device_type_qs = AppDeviceType.objects.filter(type=type).values()
                 # app_device_type_qs = AppDeviceType.objects.filter(type=type).values()
                 # if app_device_type_qs.exists():
                 # if app_device_type_qs.exists():
                 #     return response.json(174)
                 #     return response.json(174)