From a6161d1fa2fbcbcfc4badbafe258d8a5a03be267 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Wed, 24 Mar 2021 19:35:49 +1100 Subject: [PATCH] add in file cnt inside dup paths --- templates/dups.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/dups.html b/templates/dups.html index 0a1a9a2..83d731b 100644 --- a/templates/dups.html +++ b/templates/dups.html @@ -124,10 +124,10 @@ {% endfor %} {% if count.keep %} - {% set auto.str = auto.str + "
  • Duplicates in storage path matching naming convention: Keep={}, Delete={}
  • ".format(count.keep, count.del) %} + {% set auto.str = auto.str + "
  • Keeping {} files inside storage path, Deleting {} duplicates files from storage path
  • ".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] %} @@ -137,7 +137,8 @@ {% else %} {% 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 %}
    Choose path to KEEP (same file names in 2 different directories):
    @@ -165,9 +166,9 @@ {% set page.cnt = page.cnt + 1 %} {% endif %} {% endfor %} - {% if count.keep %} + {% if count.keep_d %}
    - {% set auto.str = auto.str + "
  • Keeping={}, Deleting={} paths of duplicates
  • ".format(count.keep, count.keep) %} + {% set auto.str = auto.str + "
  • Keeping {} files in {} paths, Deleting={} file in {} paths
  • ".format( count.keep_f, count.keep_d, count.keep_f, count.keep_d) %}
    {% endif %} {% if auto.str|length %}