fix: [modules] corect variable type

pull/917/head
Christophe Vandeplas 2024-05-20 14:56:36 +02:00
parent 992dc84e00
commit f4f2d6b776
No known key found for this signature in database
GPG Key ID: BDC48619FFDC5A5B
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 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

View File

@ -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

View File

@ -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)