fix: [modules] corect variable type

pull/920/head
Christophe Vandeplas 2024-05-20 14:56:36 +02:00 committed by Raphaël Vinot
parent 2840351a9f
commit daec76231f
3 changed files with 4 additions and 3 deletions

1
cache/run_redis.sh vendored
View File

@ -8,5 +8,6 @@ if [ -f ../../valkey/src/valkey-server ]; then
elif [ -f ../../redis/src/redis-server ]; then
../../redis/src/redis-server ./cache.conf
else
echo "Warning: using system redis-server. Valkey-server or redis-server from source is recommended." >&2
/usr/bin/redis-server ./cache.conf
fi

View File

@ -8,6 +8,6 @@ if [ -f ../../valkey/src/valkey-server ]; then
elif [ -f ../../redis/src/redis-server ]; then
../../redis/src/redis-server ./indexing.conf
else
echo "Warning: using system redis-server. Valkey-server or redis-server from source is recommended." >&2
/usr/bin/redis-server ./indexing.conf
fi

View File

@ -968,8 +968,8 @@ def hashlookup(tree_uuid: str) -> str | WerkzeugResponse | Response:
for sha1, entries in merged.items():
entries['nodes'] = {node.name for node in entries['nodes']}
except Exception: # error or module not enabled
merged = False
total_ressources = False
merged = []
total_ressources = []
return render_template('hashlookup.html', base_tree_uuid=tree_uuid, merged=merged, total_ressources=total_ressources)