fixed BUG-27, duplicate count per same named files in 2 dirs, was always 1

This commit is contained in:
2021-03-01 18:46:03 +11:00
parent 564962097a
commit 06eb1ef927
2 changed files with 1 additions and 3 deletions

View File

@@ -276,8 +276,8 @@ def fix_dups():
# (MOST COMMON, and I think we dont care per file, just per path)
elif d1 != dups[hash][0]['d']:
if d1 != '':
dup_cnt=1
per_path_dups.append({'count': dup_cnt, 'd1': d1, 'd2': d2, 'did1': did1, 'did2': did2, 'hashes' : hashes })
dup_cnt=1
d1 = dups[hash][0]['d']
d2 = dups[hash][1]['d']
did1 = dups[hash][0]['did']
@@ -290,7 +290,6 @@ def fix_dups():
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'] )
@app.route("/rm_dups", methods=["POST"])