|
@@ -154,8 +154,7 @@ class AiView(View):
|
|
|
}
|
|
|
if interval:
|
|
|
qs_data['detect_interval'] = int(interval)
|
|
|
- if detect_group:
|
|
|
- qs_data['detect_group'] = detect_group
|
|
|
+ qs_data['detect_group'] = detect_group if detect_group else ''
|
|
|
uid_set_qs.update(**qs_data)
|
|
|
else:
|
|
|
qs_data = {
|
|
@@ -165,8 +164,7 @@ class AiView(View):
|
|
|
}
|
|
|
if interval:
|
|
|
qs_data['detect_interval'] = int(interval)
|
|
|
- if detect_group:
|
|
|
- qs_data['detect_group'] = detect_group
|
|
|
+ qs_data['detect_group'] = detect_group if detect_group else ''
|
|
|
# 添加设备配置
|
|
|
uid_set_qs = UidSetModel.objects.create(**qs_data)
|
|
|
uid_set_id = uid_set_qs.id
|