append deletion
This commit is contained in:
parent
f5ebce9c94
commit
a1a40673fe
@ -54,11 +54,13 @@ def deleteDuplicates(duplicates):
|
|||||||
for dupe in duplicates:
|
for dupe in duplicates:
|
||||||
if len(dupe) > 2:
|
if len(dupe) > 2:
|
||||||
print(f"IGNORED\n")
|
print(f"IGNORED\n")
|
||||||
ignored.append()
|
ignored.append(dupe)
|
||||||
elif len(dupe[0]) < len(dupe[1]) and "/" in dupe[0]:
|
elif len(dupe[0]) < len(dupe[1]) and "/" in dupe[0]:
|
||||||
print(f"Deleting {dupe[1]} and keeping {dupe[0]}\n")
|
print(f"Deleting {dupe[1]} and keeping {dupe[0]}\n")
|
||||||
|
deletion.append(dupe[1])
|
||||||
elif len(dupe[1]) < len(dupe[0]) and "/" in dupe[1]:
|
elif len(dupe[1]) < len(dupe[0]) and "/" in dupe[1]:
|
||||||
print(f"Deleting {dupe[0]} and keeping {dupe[1]}\n")
|
print(f"Deleting {dupe[0]} and keeping {dupe[1]}\n")
|
||||||
|
deletion.append(dupe[0])
|
||||||
print(f"To delete: {len(deletion)} Ignored: {len(ignored)}")
|
print(f"To delete: {len(deletion)} Ignored: {len(ignored)}")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user