From 142be891f6838e019d8367c113813f6868a2161a Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 14 Jan 2024 14:25:24 +0200 Subject: [PATCH] remove linebreaks --- files/routes/holes.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/files/routes/holes.py b/files/routes/holes.py index 64e770065..07cdaea33 100644 --- a/files/routes/holes.py +++ b/files/routes/holes.py @@ -392,15 +392,11 @@ def create_sub2(v): text = f":!marseyparty: /h/{hole} has been created by @{v.username} :marseyparty:" text_html = sanitize(text, blackjack="notification") cid = create_comment(text_html) - t = time.time() - 604800 notified_users = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['NOTIFICATIONS_HOLE_CREATION'], User.id != v.id, User.last_active > t)] - for uid in notified_users: add_notif(cid, uid, text, check_existing=False) - - return redirect(f"/h/{hole}") @app.post("/kick/")