fixed BUG-24, only appends per_path_dups if we have one to append
This commit is contained in:
3
files.py
3
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'] )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user