equipment

This commit is contained in:
caoqianming 2020-07-23 21:56:01 +08:00
parent 3313ae33fa
commit a609c0e554
1 changed files with 1 additions and 1 deletions

View File

@ -6892,7 +6892,7 @@ def apiinspectitem(req):
elif a == 'handle':
data = json.loads(req.body.decode('utf-8'))
obj = InspectItem.objects.get(id=data['id'])
obj.desc2 = data['desc2']
obj.desc2 = data['desc2'] if ('desc2' in data and data['desc2']) else None
obj.img2 = data['img2'] if ('img2' in data and data['img2']) else None
obj.handletime = datetime.now()
obj.state = '异常已处理'