From 12406b67571268ef35e1d66a0397db1b590a1030 Mon Sep 17 00:00:00 2001 From: sbuser Date: Mon, 8 Aug 2011 18:33:51 -0500 Subject: [PATCH] Bugfix for local ReleaseID->ReleaseGroupID cache --- headphones/importer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/headphones/importer.py b/headphones/importer.py index cfcd22ee..b7231cc3 100644 --- a/headphones/importer.py +++ b/headphones/importer.py @@ -259,7 +259,9 @@ def addReleaseById(rid): myDB = db.DBConnection() - rgid = myDB.select("SELECT * from releases WHERE ReleaseID=?", [rid]) + results = myDB.select("SELECT ReleaseGroupID from releases WHERE ReleaseID=?", [rid]) + for result in results: + rgid = result['ReleaseGroupID'] if not rgid: #we have to make a call to get the release no matter what so we can get the RGID #need a way around this - a local cache maybe in the future maybe?