Small fixes

This commit is contained in:
VakarisZ 2018-12-15 16:42:20 +02:00
parent 7d34c290cc
commit d35634b729
1 changed files with 3 additions and 2 deletions

View File

@ -63,9 +63,10 @@ class NodeService:
@staticmethod
def get_node_label(node):
domain_name = node["domain_name"]
if node["domain_name"]:
node["domain_name"] = " ("+node["domain_name"]+")"
return node["os"]["version"] + " : " + node["ip_addresses"][0] + node["domain_name"]
domain_name = " ("+node["domain_name"]+")"
return node["os"]["version"] + " : " + node["ip_addresses"][0] + domain_name
@staticmethod
def _cmp_exploits_by_timestamp(exploit_1, exploit_2):