gf
This commit is contained in:
parent
dd39711709
commit
f90db38c08
4 changed files with 28 additions and 38 deletions
|
@ -1008,8 +1008,7 @@ def save_comment(cid, v):
|
|||
new_save=CommentSaveRelationship(user_id=v.id, comment_id=comment.id)
|
||||
g.db.add(new_save)
|
||||
|
||||
try: g.db.commit()
|
||||
except: g.db.rollback()
|
||||
g.db.commit()
|
||||
|
||||
return {"message": "Comment saved!"}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue