From 7f36637b544ccc522b80b254189a271a94ccf64b Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 13 Nov 2022 00:11:56 -0600 Subject: [PATCH] test --- files/routes/notifications.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 87caaffd2..a7fde6444 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -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(