def load_database(): image_rows = image_store.retrieve_all() for row in image_rows: images["%d" % row[0]] = [row[1], row[2], row[3]] print len(images)
def get_all_images(): images = image_store.retrieve_all() return images