fix: fixes type issue

pull/917/head
Christophe Vandeplas 2024-05-21 14:54:31 +02:00
parent f4f2d6b776
commit 50fc05e4cb
No known key found for this signature in database
GPG Key ID: BDC48619FFDC5A5B
1 changed files with 2 additions and 2 deletions

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 = []
total_ressources = []
merged = {}
total_ressources = 0
return render_template('hashlookup.html', base_tree_uuid=tree_uuid, merged=merged, total_ressources=total_ressources)