|
|
@@ -342,8 +342,6 @@ class CbdDevicePhotoView(APIView):
|
|
|
disable = cbd_dict_cache[device_id]["disable"]
|
|
|
|
|
|
result = []
|
|
|
- print(d_id,type(d_id))
|
|
|
- print(start_time,type(start_time))
|
|
|
data_m = MongoDBTools(db_name='smartfarming', table_name='sa_device_cbd_photo')
|
|
|
data_wheres = {
|
|
|
"device_id": str(d_id),
|
|
|
@@ -362,7 +360,7 @@ class CbdDevicePhotoView(APIView):
|
|
|
"addr": "$addr"
|
|
|
}
|
|
|
data = data_m.find_many(wheres=data_wheres,options=data_project)
|
|
|
-
|
|
|
+ print(data.count())
|
|
|
for item in data:
|
|
|
item_data = {}
|
|
|
addr = item["addr"]
|