summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()