From 7025cbe9832e02be3e8c0474ab52e6d31d301c6d Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sat, 8 Oct 2022 10:14:17 -0700 Subject: [PATCH] don't include sbed users in songs --- files/routes/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index ee9de5134..fa1263b17 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -189,7 +189,7 @@ def random_post(v): @app.get("/random_user") @auth_required def random_user(v): - u = g.db.query(User.username).filter(User.song != None).order_by(func.random()).first() + u = g.db.query(User.username).filter(User.song != None, User.shadowbanned == None).order_by(func.random()).first() if u: u = u[0] else: return "No users have set a profile anthem so far!"