summaryrefslogtreecommitdiff
path: root/db.py
diff options
context:
space:
mode:
Diffstat (limited to 'db.py')
-rw-r--r--db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.py b/db.py
index d71a717..1295a89 100644
--- a/db.py
+++ b/db.py
@@ -133,7 +133,7 @@ class Track(Base):
def search(session, *args, **kwargs):
r = session.query(Track)
s_or = []
- for f, n in ((Artist, 'artist'), (Track, 'title'), (Album, 'album')):
+ for f, n in ((Track, 'title'), (Album, 'album'), (Artist, 'artist')):
if f != Track:
r = r.join(f)
if n in kwargs: