Skip to content

Commit

Permalink
Merge pull request #1559 from svoos/develop
Browse files Browse the repository at this point in the history
Bugfix: Minimum popularity factor had been ignored
  • Loading branch information
sampsyo committed Jul 30, 2015
2 parents 89e4a84 + 74f58e7 commit fbe76a7
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 fbe76a7

Please sign in to comment.