Commits

John Chandler committed a58a702

Switched related band code over to use proxy

  • Participants
  • Parent commits 58da733

Comments (0)

Files changed (1)

File fluidocalypse/fluid_utils.py

 
 def get_related_bands_for( genre ):
     """ Returns list of related bands for genre """
-    response = fluid.db( "GET", "/objects", urlargs={ "query": "has metaljoe/music/genre/%s" % genre } )
+    bands = _get_value( "/objects", urlargs={ "query": "has metaljoe/music/genre/%s" % genre } )
 
     related_bands = []
-    for object_id in response.value["ids"]:
+    for object_id in bands["ids"]:
         related_bands.append( Band( object_id ).name )
 
     return sorted(related_bands)