def get_album_by_title(title): gen = Album.scan({"title": condition.EQ(title)}) for data in gen: return data