This commit is contained in:
Aevann1 2022-02-16 03:42:11 +02:00
parent dd39711709
commit f90db38c08
4 changed files with 28 additions and 38 deletions

View file

@ -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!"}