This commit is contained in:
Aevann1 2021-09-18 21:53:43 +02:00
parent 08cbae004b
commit 93f92bb9c1
2 changed files with 8 additions and 8 deletions

View file

@ -896,7 +896,7 @@ def save_comment(cid, v):
comment=get_comment(cid)
save=g.db.query(SaveRelationship).options(lazyload('*')).filter_by(user_id=v.id, submission_id=comment.id, type=2).first()
save=g.db.query(SaveRelationship).filter_by(user_id=v.id, submission_id=comment.id, type=2).first()
if not save:
new_save=SaveRelationship(user_id=v.id, submission_id=comment.id, type=2)
@ -912,7 +912,7 @@ def unsave_comment(cid, v):
comment=get_comment(cid)
save=g.db.query(SaveRelationship).options(lazyload('*')).filter_by(user_id=v.id, submission_id=comment.id, type=2).first()
save=g.db.query(SaveRelationship).filter_by(user_id=v.id, submission_id=comment.id, type=2).first()
if save: g.db.delete(save)