summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-08-24 14:46:14 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-08-24 14:46:14 +0200
commit38bbce52008ac02e0dd691d5f3c873b85a7ffd4f (patch)
treed665f94e55c78779d6e2f37319fa6d84ba4e612f
parente75a735a5cfe5f0c43315a9156e943277bf1e612 (diff)
Send file track in search results.
-rwxr-xr-xapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.py b/app.py
index a799c6f..90be2b7 100755
--- a/app.py
+++ b/app.py
@@ -155,7 +155,7 @@ class Application(object):
try:
session = db.Session()
r = db.Track.search(session, *l, **d)
- results = [File(x.get_path(), metadata = x.get_metadata()).json() for x in r]
+ results = [File(x.get_path(), metadata = x.get_metadata(), track = x.file_index).json() for x in r]
finally:
session.close()