def postFeedback(user, post_id):
post = session.query(Post).filter(Post.id == post_id).first()
# form_id = 'feedback_box_%s' % post_id
notes = request.form['data']
print('notes', notes)
if post:
post.notes = notes
session.commit()
return notes
else:
print('no post')
评论列表
文章目录