"list staffers pdf"

This commit is contained in:
Doug Le Tough 2018-05-09 10:40:13 +02:00
parent e4e9bedf9c
commit ca83342312

View File

@ -1064,7 +1064,7 @@ def print_users():
menu = get_menu(page) menu = get_menu(page)
staffers = Tetawebapp_users.query.filter(Tetawebapp_users.is_admin==0, Tetawebapp_users.link_id==None).order_by(Tetawebapp_users.name).all() staffers = Tetawebapp_users.query.filter(Tetawebapp_users.is_admin==0, Tetawebapp_users.link_id==None).order_by(Tetawebapp_users.name).all()
data = render_template('list_users_txt.html', staffers=staffers) data = render_template('list_users_txt.html', staffers=staffers)
return staffers return data
# User is not admin # User is not admin
return render_template('login_or_register.html', message="Utilisateur ou mot de passe invalide") return render_template('login_or_register.html', message="Utilisateur ou mot de passe invalide")
except Exception as e: except Exception as e: