mirror of https://github.com/CIRCL/lookyloo
fix: [modules] corect variable type
parent
992dc84e00
commit
f4f2d6b776
|
@ -8,5 +8,6 @@ if [ -f ../../valkey/src/valkey-server ]; then
|
||||||
elif [ -f ../../redis/src/redis-server ]; then
|
elif [ -f ../../redis/src/redis-server ]; then
|
||||||
../../redis/src/redis-server ./cache.conf
|
../../redis/src/redis-server ./cache.conf
|
||||||
else
|
else
|
||||||
|
echo "Warning: using system redis-server. Valkey-server or redis-server from source is recommended." >&2
|
||||||
/usr/bin/redis-server ./cache.conf
|
/usr/bin/redis-server ./cache.conf
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -8,6 +8,6 @@ if [ -f ../../valkey/src/valkey-server ]; then
|
||||||
elif [ -f ../../redis/src/redis-server ]; then
|
elif [ -f ../../redis/src/redis-server ]; then
|
||||||
../../redis/src/redis-server ./indexing.conf
|
../../redis/src/redis-server ./indexing.conf
|
||||||
else
|
else
|
||||||
|
echo "Warning: using system redis-server. Valkey-server or redis-server from source is recommended." >&2
|
||||||
/usr/bin/redis-server ./indexing.conf
|
/usr/bin/redis-server ./indexing.conf
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -968,8 +968,8 @@ def hashlookup(tree_uuid: str) -> str | WerkzeugResponse | Response:
|
||||||
for sha1, entries in merged.items():
|
for sha1, entries in merged.items():
|
||||||
entries['nodes'] = {node.name for node in entries['nodes']}
|
entries['nodes'] = {node.name for node in entries['nodes']}
|
||||||
except Exception: # error or module not enabled
|
except Exception: # error or module not enabled
|
||||||
merged = False
|
merged = []
|
||||||
total_ressources = False
|
total_ressources = []
|
||||||
return render_template('hashlookup.html', base_tree_uuid=tree_uuid, merged=merged, total_ressources=total_ressources)
|
return render_template('hashlookup.html', base_tree_uuid=tree_uuid, merged=merged, total_ressources=total_ressources)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue