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!"