def story_editing(story_id): story = Story.get(Story.id == story_id) story.story_title = request.form["story_title"] story.user_story = request.form["user_story"] story.acceptance_criteria = request.form["acceptance_criteria"] story.business_value = request.form["business_value"] story.estimation = request.form["estimation"] story.status = request.form["status"] story.save() return redirect(url_for("story_listing"))
def story_del(story_id): story_to_be_deleted = Story.get(Story.id == story_id) story_to_be_deleted.delete_instance() return redirect(url_for("story_listing"))
def story_view(story_id): story = Story.get(Story.id == story_id) return render_template('form.html', status='edit', data=story)