From 48b398c6492b397f5a9281a7083e1995c918295a Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Tue, 21 May 2024 14:54:31 +0200 Subject: [PATCH] fix: fixes type issue --- website/web/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/web/__init__.py b/website/web/__init__.py index 46d75fa..a542380 100644 --- a/website/web/__init__.py +++ b/website/web/__init__.py @@ -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 = [] - total_ressources = [] + merged = {} + total_ressources = 0 return render_template('hashlookup.html', base_tree_uuid=tree_uuid, merged=merged, total_ressources=total_ressources)