Skip to content

Commit

Permalink
Accuracy in variable naming (#1138)
Browse files Browse the repository at this point in the history
That's a Query object, not a string.
  • Loading branch information
sampsyo committed Dec 12, 2014
1 parent 54f5bc7 commit 9ce956d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beetsplug/smartplaylist.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ def _items_for_query(lib, playlist, album=False):
model = library.Album if album else library.Item
results = []
for q in query_strings:
querystr, sort = library.parse_query_string(q, model)
query, sort = library.parse_query_string(q, model)
if album:
new = lib.albums(querystr, sort)
new = lib.albums(query, sort)
else:
new = lib.items(querystr, sort)
new = lib.items(query, sort)
results.extend(new)
return results

Expand Down

0 comments on commit 9ce956d

Please sign in to comment.