"List_users: Don't show unconfirmed users"

This commit is contained in:
Doug Le Tough 2018-04-08 13:40:00 +02:00
parent 7ec2a627bc
commit 0e97c2a3a9

View File

@ -1043,7 +1043,7 @@ def list_users():
page = str(request.url_rule) page = str(request.url_rule)
menu = get_menu(page) menu = get_menu(page)
message = check_user_info() message = check_user_info()
staffers = Tetawebapp_users.query.filter(is_admin==0, link_id!=None).order_by(Tetawebapp_users.name).all() staffers = Tetawebapp_users.query.filter(is_admin==0, link_id==None).order_by(Tetawebapp_users.name).all()
return render_template('list_users.html', menu=menu, staffers=staffers, message=message) return render_template('list_users.html', menu=menu, staffers=staffers, message=message)
@app.route("/account/<ID>", methods=['GET', 'POST']) @app.route("/account/<ID>", methods=['GET', 'POST'])