Compare commits

..

No commits in common. "71c05404af4c4ff650fcacbc1a848dcdad9069dd" and "c7e3a457614f49f905c538b889f7b871e80556a5" have entirely different histories.

View File

@ -78,7 +78,7 @@ def get_watched_movies():
def new_movie(movie):
db = get_db()
movie["id"] = db.execute("INSERT INTO movies (title, year, poster, plot, number, watched) VALUES (?,?,?,?,?, 0) RETURNING id",
movie["id"] = db.execute("INSERT INTO movies (title, year, poster, plot, number) VALUES (?,?,?,?,?) RETURNING id",
(movie["title"], movie["year"], movie["poster"], movie["plot"], new_nb())).fetchone()["id"]
db.commit()
return movie