def put(id, vals): fr = FilmRepository() film = fr.update(id, vals) return jsonify({"film": film.json})
def put(title, author, date): """ Update a film based on the sent information """ repository = FilmRepository() film = repository.update(title=title, author=author, date=date) return jsonify({"film": film.json})