From fcfc755d367cdba7088101ef9d435122c253723c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 17 Sep 2021 10:11:05 +0200 Subject: [PATCH] fd --- files/routes/front.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/files/routes/front.py b/files/routes/front.py index 25602dd901..ec6ebbe0d7 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -12,6 +12,23 @@ def slash_post(): # this is a test +@app.get("/testing") +def testing(v): + notifications = g.db.query(Notification).all() + + comments = [] + + t = time.time() + + for x in notifications: + x.read = True + g.db.add(x) + + g.db.commit() + print(time.time() - t) + return "sex" + + @app.get("/notifications") @auth_required def notifications(v):