设备巡检优化
This commit is contained in:
parent
81815b6c3c
commit
3313ae33fa
|
@ -6811,6 +6811,7 @@ def apiinspectitem(req):
|
|||
if a == 'adds':
|
||||
data = json.loads(req.body.decode('utf-8'))
|
||||
for i in data['items']:
|
||||
if 'checked' in i and i['checked']:
|
||||
obj = InspectItem()
|
||||
obj.checked = True if 'checked' in i else False
|
||||
if 'state' in i:
|
||||
|
|
Loading…
Reference in New Issue