yt timestamps

This commit is contained in:
Aevann1 2021-10-29 05:33:37 +02:00
parent bcfab960a4
commit 6b95a798d0
3 changed files with 5 additions and 5 deletions

View file

@ -38,10 +38,8 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
comment = get_comment(cid, v=v)
if v and request.values.get("read"):
print(1)
notif = g.db.query(Notification).options(lazyload('*')).filter_by(comment_id=cid, user_id=v.id, read=False).first()
if notif:
print(2)
notif.read = True
g.db.add(notif)
g.db.commit()