don't include sbed users in songs

master
justcool393 2022-10-08 10:14:17 -07:00
parent 83f4e6e397
commit 7025cbe983
1 changed files with 1 additions and 1 deletions

View File

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