From 2482a2e8299727d194a94d61a7ba2945d4ce6071 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Mon, 22 Feb 2021 17:26:32 +1100 Subject: [PATCH] fixed BUG-24, only appends per_path_dups if we have one to append --- files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files.py b/files.py index e41c14a..886bd1b 100644 --- a/files.py +++ b/files.py @@ -249,7 +249,8 @@ def fix_dups(): dup_cnt += 1 hashes += f"{hash}," - per_path_dups.append({'count': dup_cnt, 'd1': d1, 'd2': d2, 'did1': did1, 'did2': did2, 'hashes' : hashes }) + if d1 != '': + per_path_dups.append({'count': dup_cnt, 'd1': d1, 'd2': d2, 'did1': did1, 'did2': did2, 'hashes' : hashes }) print( f"msg={request.form['fe_msg_id']}" ) return render_template("dups.html", per_file_dups=per_file_dups, per_path_dups=per_path_dups, fe_msg_id=request.form['fe_msg_id'] )