def save_wine_from_row(wine_row):
    wine = Wine()
    #wine.id = wine_row[0]
    wine.name = wine_row[0]
    #wine.CategoryR = wine_row[4]
    #wine.Stars = wine_row[5]
    wine.save()
Beispiel #2
0
def save_wine_from_row(wine_row):
    wine = Wine()
    wine.id = wine_row[1]
    wine.name = wine_row[2]
    wine.genres = wine_row[3]
    print(wine.id, wine.name, wine.genres)
    wine.save()
Beispiel #3
0
def save_wine_from_row(wine_row):
    wine = Wine()
    wine.id = wine_row[0]
    wine.name = wine_row[1]
    wine.country_origin = wine_row[3]
    wine.year = wine_row[2]
    wine.save()
Beispiel #4
0
def save_wine_from_row(wine_row):
    wine = Wine()
    wine.id = wine_row[0]
    wine.name = wine_row[1]
    wine.save()
Beispiel #5
0
def save_wine_from_row(wine_row):
    wine = Wine()
    wine.id = wine_row[0]
    wine.name = wine_row[1]
    wine.save()