Skip to content

Commit

Permalink
fix count hosts on index
Browse files Browse the repository at this point in the history
  • Loading branch information
Rev3rseSecurity committed Oct 21, 2018
1 parent c70bf82 commit ff55324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def index(request, filterservice="", filterportid=""):
r['out2'] = json.dumps(oo['nmaprun'], indent=4)
o = json.loads(r['out2'])

if type(o['host']) is dict:
if type(o['host']) is not dict:
hostnum = str(len(o['host']))
else:
hostnum = '1'
Expand Down

0 comments on commit ff55324

Please sign in to comment.