Bugfix for local ReleaseID->ReleaseGroupID cache

This commit is contained in:
sbuser
2011-08-08 18:33:51 -05:00
parent c07bef0db1
commit 12406b6757
+3 -1
View File
@@ -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?