From 86ff96fefb89ea8b6a64d877fc84b9d2acac33d4 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 21 Mar 2021 12:18:59 +1100 Subject: [PATCH] now passing single DD var (duplicate data) from files.py for simplicity, also added the beginnings of support for regex-d auto keeping / auto deleting of files, and paths - noting that path data from dups.py seems to not be working with my test data at present, so html showing it needs testing too --- templates/dups.html | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/templates/dups.html b/templates/dups.html index ea3f97f..babcc37 100644 --- a/templates/dups.html +++ b/templates/dups.html @@ -6,8 +6,8 @@
- + {% set count.keep = count.keep + 1 %} @@ -88,7 +103,7 @@ {% endif %} {{dup.d}}/{{dup.f}} - {% if preferred[dup.h] == dup.id %} + {% if DD.preferred_file[dup.h] == dup.id %} {% set pref.have="kf{}-f{}".format(outer_loop,loop.index) %} {% endif %} {% if loop.index < dups|length %} @@ -118,7 +133,7 @@ {% if page.cnt < pagesize %}
Choose path to KEEP (same file names in 2 different directories):
- {% for dup in per_path_dups %} + {% for dup in DD.per_path_dups %}
{{dup.count}} duplicates in: {{dup.d1}} or @@ -128,6 +143,12 @@
{% set page.cnt = page.cnt + 1 %}