add in file cnt inside dup paths

This commit is contained in:
2021-03-24 19:35:49 +11:00
parent 6e50390886
commit a6161d1fa2

View File

@@ -124,10 +124,10 @@
{% endfor %}
{% if count.keep %}
{% set auto.str = auto.str + "<li>Duplicates in storage path matching naming convention: Keep={}, Delete={}</li>".format(count.keep, count.del) %}
{% set auto.str = auto.str + "<li>Keeping {} files inside storage path, Deleting {} duplicates files from storage path</li>".format(count.keep, count.del) %}
{% endif %}
{% set count=namespace( del=0, keep=0 ) %}
{% set count=namespace( keep_d=0, keep_f=0 ) %}
{% for dup in DD.per_path_dups %}
{% if DD.preferred_path[dup.did1] or DD.preferred_path[dup.did2] %}
<input id="kdid-{{loop.index}}" type="hidden" name="kdid-1">
@@ -137,7 +137,8 @@
{% else %}
<input type="hidden" name="kdid-{{loop.index}}" value="DD.preferred_path[dup.did2]">
{% endif %}
{% set count.keep = count.keep + 1 %}
{% set count.keep_d = count.keep_d + 1 %}
{% set count.keep_f = count.keep_f + dup.hashes|wordcount %}
{% elif page.cnt <= pagesize %}
<div class="col-lg-12 py-2">
<h5 class="col-lg-12 mt-3">Choose path to KEEP (same file names in 2 different directories):</h5>
@@ -165,9 +166,9 @@
{% set page.cnt = page.cnt + 1 %}
{% endif %}
{% endfor %}
{% if count.keep %}
{% if count.keep_d %}
<div class="col-lg-12">
{% set auto.str = auto.str + "<li>Keeping={}, Deleting={} paths of duplicates</li>".format(count.keep, count.keep) %}
{% set auto.str = auto.str + "<li>Keeping {} files in {} paths, Deleting={} file in {} paths</li>".format( count.keep_f, count.keep_d, count.keep_f, count.keep_d) %}
</div>
{% endif %}
{% if auto.str|length %}