fixed BUG-24, only appends per_path_dups if we have one to append

This commit is contained in:
2021-02-22 17:26:32 +11:00
parent 7fd6a2eddb
commit 2482a2e829

View File

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