mirror of https://github.com/openspug/spug
F 修复与主机相关的监控项页面展示状态问题 #I5AIL1
parent
21a0250ecd
commit
fcff2d5efb
|
@ -114,6 +114,7 @@ def get_overview(request):
|
||||||
for item in Detection.objects.all():
|
for item in Detection.objects.all():
|
||||||
data = {}
|
data = {}
|
||||||
for key in json.loads(item.targets):
|
for key in json.loads(item.targets):
|
||||||
|
key = str(key)
|
||||||
data[key] = {
|
data[key] = {
|
||||||
'id': f'{item.id}_{key}',
|
'id': f'{item.id}_{key}',
|
||||||
'group': item.group,
|
'group': item.group,
|
||||||
|
|
Loading…
Reference in New Issue