diff --git a/website/web/__init__.py b/website/web/__init__.py index eda88b18..e0245eb1 100644 --- a/website/web/__init__.py +++ b/website/web/__init__.py @@ -571,7 +571,11 @@ def ressources(): domain_freq = i.ressources_number_domains(h) context = lookyloo.context.find_known_content(h) capture_uuid, url_uuid, hostnode_uuid = i.get_hash_uuids(h) - ressources.append((h, freq, domain_freq, context.get(h), capture_uuid, url_uuid, hostnode_uuid)) + try: + ressource = lookyloo.get_ressource(capture_uuid, url_uuid, h) + except lookyloo.exceptions.MissingUUID: + ressource = ['unknown', '', 'unknown'] + ressources.append((h, freq, domain_freq, context.get(h), capture_uuid, url_uuid, hostnode_uuid, ressource[0], ressource[2])) return render_template('ressources.html', ressources=ressources) diff --git a/website/web/templates/ressources.html b/website/web/templates/ressources.html index d881c57a..889d2bda 100644 --- a/website/web/templates/ressources.html +++ b/website/web/templates/ressources.html @@ -16,6 +16,13 @@ "pageLength": 500 }); + {% endblock %} @@ -34,20 +41,24 @@