mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-21 19:07:44 +01:00
Bugfix for local ReleaseID->ReleaseGroupID cache
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user