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'] )