Skip to content

Commit

Permalink
fix: Submit file to pandora
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Nov 13, 2024
1 parent 44e69a4 commit cd0411f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions website/web/templates/hostname_popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ <h5>NS record for {{hostnode.ns[0]}}:</h5>
<div>
{% if has_pandora %}
<div> Downloaded file: <b>{{url['url_object'].downloaded_filename}}</b> ({{sizeof_fmt(url['url_object'].downloaded_file.getbuffer().nbytes)}})</div>
{{ pandora_submit() }}
{{ pandora_submit(tree_uuid, url['url_object'].uuid) }}
{% else %}
<a href="{{ url_for('data', tree_uuid=tree_uuid)}}">
Download {{url['url_object'].downloaded_filename}}
Expand All @@ -242,7 +242,7 @@ <h5>NS record for {{hostnode.ns[0]}}:</h5>
{% 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 %}
</div>
Expand Down Expand Up @@ -303,7 +303,7 @@ <h5>NS record for {{hostnode.ns[0]}}:</h5>
{{ ressource_legitimacy_details(details['legitimacy'], details['body_size']) }}
</div>
{% if has_pandora %}
{{ pandora_submit(url['url_object'].uuid, hash) }}
{{ pandora_submit(tree_uuid, url['url_object'].uuid), hash }}
{% endif %}
<div>
This file {% if details['type'] %}(<b>{{ details['type'] }}</b>){% endif %} can be found <b>{{ details['hash_freq'] }}</b> times
Expand Down
2 changes: 1 addition & 1 deletion website/web/templates/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
{% endmacro %}


{% macro pandora_submit(node_uuid, ressource_hash) %}
{% macro pandora_submit(tree_uuid, node_uuid, ressource_hash) %}
<div class="col-sm-8">
<button type="button" class="btn btn-primary btn-sm submitPandoraButton"
title="open a new tab with the pandora report"
Expand Down

0 comments on commit cd0411f

Please sign in to comment.