Skip to content

Commit

Permalink
Bugfix:
Browse files Browse the repository at this point in the history
Items had not been filtered. Converting the tags' weight into an integer solves it.
  • Loading branch information
Sven Oos authored and Sven Oos committed Aug 3, 2015
1 parent 89e4a84 commit 74f58e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beetsplug/lastgenre/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def _tags_for(self, obj, min_weight=None):

# Filter by weight (optionally).
if min_weight:
res = [el for el in res if (el.weight or 0) >= min_weight]
res = [el for el in res if (int(el.weight) or 0) >= min_weight]

# Get strings from tags.
res = [el.item.get_name().lower() for el in res]
Expand Down

0 comments on commit 74f58e7

Please sign in to comment.