fixed BUG-24, only appends per_path_dups if we have one to append
This commit is contained in:
1
files.py
1
files.py
@@ -249,6 +249,7 @@ def fix_dups():
|
|||||||
dup_cnt += 1
|
dup_cnt += 1
|
||||||
hashes += f"{hash},"
|
hashes += f"{hash},"
|
||||||
|
|
||||||
|
if d1 != '':
|
||||||
per_path_dups.append({'count': dup_cnt, 'd1': d1, 'd2': d2, 'did1': did1, 'did2': did2, 'hashes' : hashes })
|
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']}" )
|
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'] )
|
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'] )
|
||||||
|
|||||||
Reference in New Issue
Block a user