"list staffers pdf"

This commit is contained in:
Doug Le Tough 2018-05-09 11:21:33 +02:00
parent f29b16320e
commit beb9a3f3a3
1 changed files with 1 additions and 1 deletions

View File

@ -1061,7 +1061,7 @@ def print_users():
try:
if session['is_admin']:
staffers = Tetawebapp_users.query.filter(Tetawebapp_users.is_admin==0, Tetawebapp_users.link_id==None).order_by(Tetawebapp_users.name).all()
return render_template('list_users.html', staffers=staffers)
return render_template('list_users_txt.html', staffers=staffers)
# User is not admin
return render_template('login_or_register.html', message="Utilisateur ou mot de passe invalide")
except Exception as e: