|
@@ -325,7 +325,7 @@ class DetectControllerViewV2(View):
|
|
|
for dv in dvqs:
|
|
|
uid_type_dict[dv['UID']] = {'type': dv['Type'], 'NickName': dv['NickName']}
|
|
|
# print(uid_type_dict)
|
|
|
- if count == 0 and not qs.exists():
|
|
|
+ if not qs or count == 0 or not qs.exists():
|
|
|
return response.json(0, {'datas': [], 'count': 0})
|
|
|
# qs = qs.values('id', 'devUid', 'devNickName', 'Channel', 'eventType', 'status', 'alarm', 'eventTime',
|
|
|
# 'receiveTime', 'is_st', 'addTime', 'storage_location', 'borderCoords')
|