forked from rDrama/rDrama
dfssdf
parent
cefb2cfad0
commit
9b1043a9ca
|
@ -849,7 +849,8 @@ def save_comment(cid, v):
|
||||||
if not save:
|
if not save:
|
||||||
new_save=SaveRelationship(user_id=v.id, submission_id=comment.id, type=2)
|
new_save=SaveRelationship(user_id=v.id, submission_id=comment.id, type=2)
|
||||||
g.db.add(new_save)
|
g.db.add(new_save)
|
||||||
g.db.commit()
|
try: g.db.commit()
|
||||||
|
except: g.db.rollback()
|
||||||
|
|
||||||
return {"message": "Comment saved!"}
|
return {"message": "Comment saved!"}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue