|
@@ -138,7 +138,7 @@ class PestSelectView(GenericAPIView):
|
|
|
indentify_photo = indentify_path + "/" + photo_object["indentify_photo"]
|
|
indentify_photo = indentify_path + "/" + photo_object["indentify_photo"]
|
|
|
else:
|
|
else:
|
|
|
indentify_photo = ""
|
|
indentify_photo = ""
|
|
|
- pest_image_data.append({"deviceId":d_id_dicts.get(d_id,{"device_id":d_id})["device_id"],
|
|
|
|
|
|
|
+ pest_image_data.append({"deviceId":str(d_id_dicts.get(d_id,{"device_id":d_id})["device_id"]),
|
|
|
"deviceName":d_id_dicts.get(d_id,{"device_name":"测报灯"})["device_name"],
|
|
"deviceName":d_id_dicts.get(d_id,{"device_name":"测报灯"})["device_name"],
|
|
|
"pestName":pest_string,
|
|
"pestName":pest_string,
|
|
|
"addtime":addtime,
|
|
"addtime":addtime,
|