Skip to content

Commit

Permalink
Fix beetbox#1564 (regression from beetbox#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Aug 8, 2015
1 parent 7621ae4 commit 4038f19
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 (int(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 4038f19

Please sign in to comment.