Explorar el Código

feature:增加新的查询ota包接口

chenjunkai hace 6 años
padre
commit
8806aed9a5
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      Controller/EquipmentOTA.py

+ 3 - 0
Controller/EquipmentOTA.py

@@ -179,6 +179,9 @@ class EquipmentVersionView(View):
         line = request_dict.get('line', None)
         if not page or not line:
             return response.json(444, 'page,line')
+        else:
+            page = int(page)
+            line = int(line)
         if mci is not None:
             ev_qs = Equipment_Version.objects.filter(mci=mci).values()
         else: