)
logger.debug("data[]='%s'", type(data))
- if "error_message" not in data and "json" in data:
+ if "error_message" not in data and "json" in data and len(data["json"]) > 0:
logger.debug("path='%s' returned valid json()=%d", path, len(data["json"]))
break
<tr>
<td>{{loop.index}}</td>
<td>
- {% if mode in ('error_code', 'avg_peers', 'obfuscator', 'obfuscation') %}
+ {% if mode in ('error_code', 'obfuscator', 'obfuscation') %}
{{entry['domain']}}
- {% elif entry['domain'] == None %}
- -
{% elif mode == 'block_level' %}
<a href="top?mode={{mode}}&value={{entry['domain']}}&amount=50">{{entry['domain']}}</a>
+ {% elif mode == 'avg_peers' %}
+ <a href="list?mode=software&value={{entry['domain']}}&amount=50">{{entry['domain']}}</a>
{% elif mode in ('software', 'detection_mode', 'command') %}
<a href="list?mode={{mode}}&value={{entry['domain']}}&amount=50">{{entry['domain']}}</a>
+ {% elif entry['domain'] == None %}
+ -
{% else %}
{% with domain=entry['domain'] %}
{% include "widgets/links.html" %}