forked from rDrama/rDrama
1
0
Fork 0
master
justcool393 2022-11-13 00:11:56 -06:00
parent 80d7d5281d
commit 7f36637b54
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@ from files.__main__ import app
import time
@app.post("/clear")
@ratelimit_user()
@auth_required
def clear(v):
notifs = g.db.query(Notification).join(Notification.comment).filter(Notification.read == False, Notification.user_id == v.id).all()
@ -18,6 +19,7 @@ def clear(v):
@app.get("/unread")
@ratelimit_user()
@auth_required
def unread(v):
listing = g.db.query(Notification, Comment).join(Notification.comment).filter(