From 4a9c3b4aa3f93f1dddc93faaf0bab888e6348894 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 4 Sep 2021 19:50:27 +1000 Subject: [PATCH] minor clean up of screen content --- templates/dups.html | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/templates/dups.html b/templates/dups.html index 7bcd1a5..4e70837 100644 --- a/templates/dups.html +++ b/templates/dups.html @@ -82,7 +82,7 @@ {% set count.del = count.del + DD.ip_to_sp_dups_del[h]|length %} {% endfor %} {% if count.keep %} - {% set auto.str = auto.str + "
  • Keeping {} files in storage path and deleting {} from import path
  • ".format(count.keep, count.del) %} + {% set auto.str = auto.str + "
  • Keeping {} files in storage path and Deleting {} from import path
  • ".format(count.keep, count.del) %} {% set all_count.k_files = all_count.k_files + count.keep %} {% set all_count.d_files = all_count.d_files + count.del %} {% endif %} @@ -94,6 +94,7 @@ {% for dup in dups %} {# for each hash in preferred_file, auto keep it, only need hidden input, dont process further #} {% if DD.preferred_file[dup.h] %} + {% set pref.have = "True" %} {% if DD.preferred_file[dup.h] == dup.id %} {% set kfid.count = kfid.count+1 %} @@ -103,7 +104,11 @@ {% else %} {% set count.del = count.del + 1 %} {% endif %} + {% elif DD.ip_to_sp_dups_keep[dup.h] %} + {# okay, this is a per file choice, and yet it is in the ip and sp, so sp one was kept, ignore this one it should just be deleted #} + {# TOTHINK: can you have sp to sp here, and be in ip to sp??? so still need an alert choice? #} {% else %} + {# okay, show an alert / make it choosable for each of these manually processed dups #} {% if loop.index == 1 %} {% set all_count.manual = all_count.manual + 1 %} @@ -145,7 +150,7 @@ {% endfor %} {% if count.keep %} - {% set auto.str = auto.str + "
  • Keeping {} files inside storage path, Deleting {} duplicates files from storage path
  • ".format(count.keep, count.del) %} + {% set auto.str = auto.str + "
  • Keeping {} files inside storage path, Deleting {} duplicates files from storage/import path
  • ".format(count.keep, count.del) %} {% set all_count.k_files = all_count.k_files + count.keep %} {% set all_count.d_files = all_count.d_files + count.del %} {% set all_count.mk_files = count.man_keep %} @@ -197,7 +202,7 @@ {% endfor %} {% if count.keep_d %}
    - {% 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) %} + {% 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) %} {% set all_count.k_files = all_count.k_files + count.keep_f %} {% set all_count.d_files = all_count.d_files + count.keep_f %} {% set all_count.mk_files = all_count.mk_files + count.m_files %} @@ -209,8 +214,10 @@ - Automatically Keeping {{all_count.k_files}} files and deleting {{all_count.d_files}} files
    - Leaving {{all_count.manual}} manual choices to make (to keep {{all_count.mk_files}} files and delete {{all_count.md_files}} files) + Automatically Keeping {{all_count.k_files}} files and Deleting {{all_count.d_files}} files
    + {% if all_count.manual %} + Leaving {{all_count.manual}} manual choices to make (to Keep {{all_count.mk_files}} files and Delete {{all_count.md_files}} files) + {% endif %} {# So by counting/double-check, uniq files kept = {{all_count.k_files+all_count.mk_files}}, overall dups = {{all_count.k_files+all_count.d_files+all_count.mk_files+all_count.md_files}}