Skip to content

Commit f6ecbf6

Browse files
committed
Silly oversight in fix for #1551
1 parent ebf98d7 commit f6ecbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beetsplug/duplicates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def truthy(v):
259259
return v is not None and \
260260
(v != '' if isinstance(v, unicode) else True)
261261
fields = kind.all_keys()
262-
key = lambda x: sum(1 for f in fields if truthy(f))
262+
key = lambda x: sum(1 for f in fields if truthy(getattr(x, f)))
263263
else:
264264
key = lambda x: len(x.items())
265265

0 commit comments

Comments
 (0)