def getImagesByBrand(brand): return Image.query().filter(Image.brand == brand).fetch()
def getImagesByType(clothingType): return Image.query().filter(Image.clothingType == clothingType).fetch()
def getImagesByPriceRange(min, max): images = Image.query() imagesBelow = images.filter(Image.totalPrice <= max) imagesAboveBelow = imagesBelow.filter(Image.totalPrice >= min) return imagesAboveBelow.fetch()