master
Aevann1 2021-10-09 08:17:13 +02:00
parent cefb2cfad0
commit 9b1043a9ca
1 changed files with 2 additions and 1 deletions

View File

@ -849,7 +849,8 @@ def save_comment(cid, v):
if not save:
new_save=SaveRelationship(user_id=v.id, submission_id=comment.id, type=2)
g.db.add(new_save)
g.db.commit()
try: g.db.commit()
except: g.db.rollback()
return {"message": "Comment saved!"}