mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 13:44:37 +00:00
Removed useless add_to_ignore_list()
This commit is contained in:
parent
3c75d2f8b7
commit
f7aaea79af
@ -126,16 +126,13 @@ class DupeGuru(RegistrableApplication, Broadcaster):
|
|||||||
except directories.InvalidPathError:
|
except directories.InvalidPathError:
|
||||||
return 2
|
return 2
|
||||||
|
|
||||||
def add_to_ignore_list(self, dupe):
|
def add_selected_to_ignore_list(self):
|
||||||
|
dupes = self.without_ref(self.selected_dupes)
|
||||||
|
for dupe in dupes:
|
||||||
g = self.results.get_group_of_duplicate(dupe)
|
g = self.results.get_group_of_duplicate(dupe)
|
||||||
for other in g:
|
for other in g:
|
||||||
if other is not dupe:
|
if other is not dupe:
|
||||||
self.scanner.ignore_list.Ignore(unicode(other.path), unicode(dupe.path))
|
self.scanner.ignore_list.Ignore(unicode(other.path), unicode(dupe.path))
|
||||||
|
|
||||||
def add_selected_to_ignore_list(self):
|
|
||||||
dupes = self.without_ref(self.selected_dupes)
|
|
||||||
for dupe in dupes:
|
|
||||||
self.add_to_ignore_list(dupe)
|
|
||||||
self.remove_duplicates(dupes)
|
self.remove_duplicates(dupes)
|
||||||
|
|
||||||
def apply_filter(self, filter):
|
def apply_filter(self, filter):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user