コード例 #1
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()
コード例 #2
0
ファイル: load_wines.py プロジェクト: jda3000/winerama
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()
コード例 #3
0
ファイル: load_wines.py プロジェクト: liwei123/winerama
def save_wine_from_row(wine_row):
    wine = Wine()
    wine.id = wine_row[0]
    wine.name = wine_row[1]
    wine.save()
コード例 #4
0
ファイル: load_wines.py プロジェクト: alviandk/private-upload
def save_wine_from_row(wine_row):
    wine = Wine()
    wine.id = wine_row[0]
    wine.name = wine_row[1]
    wine.save()