mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Merge pull request #910 from glubsy/757_fix
Fix refs appearing in dupes-only view
This commit is contained in:
commit
2f8d603251
@ -94,22 +94,21 @@ class Results(Markable):
|
|||||||
|
|
||||||
# ---Private
|
# ---Private
|
||||||
def __get_dupe_list(self):
|
def __get_dupe_list(self):
|
||||||
if self.__dupes is None:
|
self.__dupes = flatten(group.dupes for group in self.groups)
|
||||||
self.__dupes = flatten(group.dupes for group in self.groups)
|
if None in self.__dupes:
|
||||||
if None in self.__dupes:
|
# This is debug logging to try to figure out #44
|
||||||
# This is debug logging to try to figure out #44
|
logging.warning(
|
||||||
logging.warning(
|
"There is a None value in the Results' dupe list. dupes: %r groups: %r",
|
||||||
"There is a None value in the Results' dupe list. dupes: %r groups: %r",
|
self.__dupes,
|
||||||
self.__dupes,
|
self.groups,
|
||||||
self.groups,
|
)
|
||||||
)
|
if self.__filtered_dupes:
|
||||||
if self.__filtered_dupes:
|
self.__dupes = [
|
||||||
self.__dupes = [
|
dupe for dupe in self.__dupes if dupe in self.__filtered_dupes
|
||||||
dupe for dupe in self.__dupes if dupe in self.__filtered_dupes
|
]
|
||||||
]
|
sd = self.__dupes_sort_descriptor
|
||||||
sd = self.__dupes_sort_descriptor
|
if sd:
|
||||||
if sd:
|
self.sort_dupes(sd[0], sd[1], sd[2])
|
||||||
self.sort_dupes(sd[0], sd[1], sd[2])
|
|
||||||
return self.__dupes
|
return self.__dupes
|
||||||
|
|
||||||
def __get_groups(self):
|
def __get_groups(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user