예제 #1
0
def getImagesByBrand(brand):
    return Image.query().filter(Image.brand == brand).fetch()
예제 #2
0
def getImagesByType(clothingType):
    return Image.query().filter(Image.clothingType == clothingType).fetch()
예제 #3
0
def getImagesByPriceRange(min, max):
    images = Image.query()
    imagesBelow = images.filter(Image.totalPrice <= max)
    imagesAboveBelow = imagesBelow.filter(Image.totalPrice >= min)
    return imagesAboveBelow.fetch()