From 38bbce52008ac02e0dd691d5f3c873b85a7ffd4f Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 24 Aug 2011 14:46:14 +0200 Subject: Send file track in search results. --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3