From cd0411f4196fe5de74067d0664bee99c222b5723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 14 Nov 2024 00:31:14 +0100 Subject: [PATCH] fix: Submit file to pandora --- website/web/templates/hostname_popup.html | 6 +++--- website/web/templates/macros.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website/web/templates/hostname_popup.html b/website/web/templates/hostname_popup.html index 7c5ef9bb..b8b41309 100644 --- a/website/web/templates/hostname_popup.html +++ b/website/web/templates/hostname_popup.html @@ -215,7 +215,7 @@
{% if has_pandora %}
Downloaded file: {{url['url_object'].downloaded_filename}} ({{sizeof_fmt(url['url_object'].downloaded_file.getbuffer().nbytes)}})
- {{ pandora_submit() }} + {{ pandora_submit(tree_uuid, url['url_object'].uuid) }} {% else %} Download {{url['url_object'].downloaded_filename}} @@ -242,7 +242,7 @@ {% else %} {{ ressource_legitimacy_details(url['legitimacy'], url['url_object'].body.getbuffer().nbytes) }} {% if has_pandora %} - {{ pandora_submit(url['url_object'].uuid) }} + {{ pandora_submit(tree_uuid, url['url_object'].uuid) }} {% endif %} {% endif %}
@@ -303,7 +303,7 @@ {{ ressource_legitimacy_details(details['legitimacy'], details['body_size']) }} {% if has_pandora %} - {{ pandora_submit(url['url_object'].uuid, hash) }} + {{ pandora_submit(tree_uuid, url['url_object'].uuid), hash }} {% endif %}
This file {% if details['type'] %}({{ details['type'] }}){% endif %} can be found {{ details['hash_freq'] }} times diff --git a/website/web/templates/macros.html b/website/web/templates/macros.html index 21a06a19..6b2dbdd1 100644 --- a/website/web/templates/macros.html +++ b/website/web/templates/macros.html @@ -315,7 +315,7 @@ {% endmacro %} -{% macro pandora_submit(node_uuid, ressource_hash) %} +{% macro pandora_submit(tree_uuid, node_uuid, ressource_hash) %}