forked from rDrama/rDrama
test
parent
80d7d5281d
commit
7f36637b54
|
@ -5,6 +5,7 @@ from files.__main__ import app
|
||||||
import time
|
import time
|
||||||
|
|
||||||
@app.post("/clear")
|
@app.post("/clear")
|
||||||
|
@ratelimit_user()
|
||||||
@auth_required
|
@auth_required
|
||||||
def clear(v):
|
def clear(v):
|
||||||
notifs = g.db.query(Notification).join(Notification.comment).filter(Notification.read == False, Notification.user_id == v.id).all()
|
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")
|
@app.get("/unread")
|
||||||
|
@ratelimit_user()
|
||||||
@auth_required
|
@auth_required
|
||||||
def unread(v):
|
def unread(v):
|
||||||
listing = g.db.query(Notification, Comment).join(Notification.comment).filter(
|
listing = g.db.query(Notification, Comment).join(Notification.comment).filter(
|
||||||
|
|
Loading…
Reference in New Issue